Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: test/mjsunit/wasm/wasm-module-builder.js

Issue 1770383002: [wasm] Rename _WASMEXP_ object to Wasm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/mjsunit/wasm/verify-module-basic-errors.js ('k') | test/mjsunit/wasm/wasm-object-api.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function StringRef(string) { 5 function StringRef(string) {
6 this.pos = -1; 6 this.pos = -1;
7 this.string = string; 7 this.string = string;
8 } 8 }
9 9
10 function DataRef(data) { 10 function DataRef(data) {
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 var val = bytes[i]; 352 var val = bytes[i];
353 if ((typeof val) == "string") val = val.charCodeAt(0); 353 if ((typeof val) == "string") val = val.charCodeAt(0);
354 view[i] = val | 0; 354 view[i] = val | 0;
355 } 355 }
356 return buffer; 356 return buffer;
357 } 357 }
358 358
359 WasmModuleBuilder.prototype.instantiate = function(ffi, memory) { 359 WasmModuleBuilder.prototype.instantiate = function(ffi, memory) {
360 var buffer = this.toBuffer(); 360 var buffer = this.toBuffer();
361 if (memory != undefined) { 361 if (memory != undefined) {
362 return _WASMEXP_.instantiateModule(buffer, ffi, memory); 362 return Wasm.instantiateModule(buffer, ffi, memory);
363 } else { 363 } else {
364 return _WASMEXP_.instantiateModule(buffer, ffi); 364 return Wasm.instantiateModule(buffer, ffi);
365 } 365 }
366 } 366 }
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/verify-module-basic-errors.js ('k') | test/mjsunit/wasm/wasm-object-api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698