| OLD | NEW |
| 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 #define CORE_WCM_PROPERTY_TABLE(MACRO) \ | 399 #define CORE_WCM_PROPERTY_TABLE(MACRO) \ |
| 400 MACRO(OBJECT, FixedArray, code_table) \ | 400 MACRO(OBJECT, FixedArray, code_table) \ |
| 401 MACRO(OBJECT, Foreign, module_wrapper) \ | 401 MACRO(OBJECT, Foreign, module_wrapper) \ |
| 402 MACRO(OBJECT, SeqOneByteString, module_bytes) \ | 402 MACRO(OBJECT, SeqOneByteString, module_bytes) \ |
| 403 MACRO(OBJECT, Script, asm_js_script) \ | 403 MACRO(OBJECT, Script, asm_js_script) \ |
| 404 MACRO(OBJECT, FixedArray, function_tables) \ | 404 MACRO(OBJECT, FixedArray, function_tables) \ |
| 405 MACRO(OBJECT, FixedArray, empty_function_tables) \ | 405 MACRO(OBJECT, FixedArray, empty_function_tables) \ |
| 406 MACRO(OBJECT, ByteArray, asm_js_offset_tables) \ | 406 MACRO(OBJECT, ByteArray, asm_js_offset_tables) \ |
| 407 MACRO(OBJECT, JSArrayBuffer, memory) \ | 407 MACRO(OBJECT, JSArrayBuffer, memory) \ |
| 408 MACRO(SMALL_NUMBER, uint32_t, min_mem_pages) \ | 408 MACRO(SMALL_NUMBER, uint32_t, min_mem_pages) \ |
| 409 MACRO(SMALL_NUMBER, uint32_t, max_mem_pages) \ |
| 409 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \ | 410 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \ |
| 410 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \ | 411 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \ |
| 411 MACRO(WEAK_LINK, JSObject, owning_instance) \ | 412 MACRO(WEAK_LINK, JSObject, owning_instance) \ |
| 412 MACRO(WEAK_LINK, JSObject, wasm_module) | 413 MACRO(WEAK_LINK, JSObject, wasm_module) |
| 413 | 414 |
| 414 #if DEBUG | 415 #if DEBUG |
| 415 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_NUMBER, uint32_t, instance_id) | 416 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_NUMBER, uint32_t, instance_id) |
| 416 #else | 417 #else |
| 417 #define DEBUG_ONLY_TABLE(IGNORE) | 418 #define DEBUG_ONLY_TABLE(IGNORE) |
| 418 uint32_t instance_id() const { return -1; } | 419 uint32_t instance_id() const { return -1; } |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 int instance_count); | 570 int instance_count); |
| 570 void ValidateModuleState(Isolate* isolate, Handle<JSObject> wasm_module); | 571 void ValidateModuleState(Isolate* isolate, Handle<JSObject> wasm_module); |
| 571 void ValidateOrphanedInstance(Isolate* isolate, Handle<JSObject> instance); | 572 void ValidateOrphanedInstance(Isolate* isolate, Handle<JSObject> instance); |
| 572 | 573 |
| 573 } // namespace testing | 574 } // namespace testing |
| 574 } // namespace wasm | 575 } // namespace wasm |
| 575 } // namespace internal | 576 } // namespace internal |
| 576 } // namespace v8 | 577 } // namespace v8 |
| 577 | 578 |
| 578 #endif // V8_WASM_MODULE_H_ | 579 #endif // V8_WASM_MODULE_H_ |
| OLD | NEW |