~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to src/determinstic.js

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-06-11 15:45:24 UTC
  • mfrom: (1.2.1) (2.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130611154524-rppb3w6tixlegv4n
Tags: 1.4.7~20130611~a1eb425-1
* New snapshot release
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
};
11
11
performance.now = Date.now;
12
12
 
 
13
function hashMemory(id) {
 
14
  var ret = 0;
 
15
  for (var i = 0; i < HEAPU8.length; i++) {
 
16
    ret = (ret*17 + HEAPU8[i])|0;
 
17
  }
 
18
  print(id + ':' + ret);
 
19
}
 
20