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

Side by Side Diff: src/wasm/wasm-module-builder.cc

Issue 2522953002: [wasm] Move asm.js offset table to compiled module (Closed)
Patch Set: rebase Created 4 years 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 | « src/wasm/wasm-module.cc ('k') | src/wasm/wasm-objects.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include "src/signature.h" 5 #include "src/signature.h"
6 6
7 #include "src/handles.h" 7 #include "src/handles.h"
8 #include "src/v8.h" 8 #include "src/v8.h"
9 #include "src/zone/zone-containers.h" 9 #include "src/zone/zone-containers.h"
10 10
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 } 527 }
528 } 528 }
529 529
530 void WasmModuleBuilder::WriteAsmJsOffsetTable(ZoneBuffer& buffer) const { 530 void WasmModuleBuilder::WriteAsmJsOffsetTable(ZoneBuffer& buffer) const {
531 // == Emit asm.js offset table =============================================== 531 // == Emit asm.js offset table ===============================================
532 buffer.write_size(functions_.size()); 532 buffer.write_size(functions_.size());
533 // Emit the offset table per function. 533 // Emit the offset table per function.
534 for (auto function : functions_) { 534 for (auto function : functions_) {
535 function->WriteAsmWasmOffsetTable(buffer); 535 function->WriteAsmWasmOffsetTable(buffer);
536 } 536 }
537 // Append a 0 to indicate that this is an encoded table.
538 buffer.write_u8(0);
537 } 539 }
538 } // namespace wasm 540 } // namespace wasm
539 } // namespace internal 541 } // namespace internal
540 } // namespace v8 542 } // namespace v8
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | src/wasm/wasm-objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698