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

Side by Side Diff: src/wasm/wasm-module.h

Issue 2681993003: [wasm] Accept version 0x1 binaries. (Closed)
Patch Set: Add new expected outputs for inspector tests. Created 3 years, 10 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
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 #ifndef V8_WASM_MODULE_H_ 5 #ifndef V8_WASM_MODULE_H_
6 #define V8_WASM_MODULE_H_ 6 #define V8_WASM_MODULE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/api.h" 10 #include "src/api.h"
(...skipping 17 matching lines...) Expand all
28 28
29 namespace compiler { 29 namespace compiler {
30 class CallDescriptor; 30 class CallDescriptor;
31 class WasmCompilationUnit; 31 class WasmCompilationUnit;
32 } 32 }
33 33
34 namespace wasm { 34 namespace wasm {
35 class ErrorThrower; 35 class ErrorThrower;
36 36
37 const uint32_t kWasmMagic = 0x6d736100; 37 const uint32_t kWasmMagic = 0x6d736100;
38 const uint32_t kWasmVersion = 0x0d; 38 const uint32_t kWasmVersion = 0x01;
39 // Legacy version supported for short transitionary period.
40 const uint32_t kWasmLegacyVersion = 0x0d;
39 41
40 const uint8_t kWasmFunctionTypeForm = 0x60; 42 const uint8_t kWasmFunctionTypeForm = 0x60;
41 const uint8_t kWasmAnyFunctionTypeForm = 0x70; 43 const uint8_t kWasmAnyFunctionTypeForm = 0x70;
42 44
43 enum WasmSectionCode { 45 enum WasmSectionCode {
44 kUnknownSectionCode = 0, // code for unknown sections 46 kUnknownSectionCode = 0, // code for unknown sections
45 kTypeSectionCode = 1, // Function signature declarations 47 kTypeSectionCode = 1, // Function signature declarations
46 kImportSectionCode = 2, // Import declarations 48 kImportSectionCode = 2, // Import declarations
47 kFunctionSectionCode = 3, // Function declarations 49 kFunctionSectionCode = 3, // Function declarations
48 kTableSectionCode = 4, // Indirect function table and other tables 50 kTableSectionCode = 4, // Indirect function table and other tables
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 472 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
471 void ValidateOrphanedInstance(Isolate* isolate, 473 void ValidateOrphanedInstance(Isolate* isolate,
472 Handle<WasmInstanceObject> instance); 474 Handle<WasmInstanceObject> instance);
473 475
474 } // namespace testing 476 } // namespace testing
475 } // namespace wasm 477 } // namespace wasm
476 } // namespace internal 478 } // namespace internal
477 } // namespace v8 479 } // namespace v8
478 480
479 #endif // V8_WASM_MODULE_H_ 481 #endif // V8_WASM_MODULE_H_
OLDNEW
« no previous file with comments | « src/wasm/module-decoder.cc ('k') | test/inspector/debugger/wasm-get-breakable-locations-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698