OLD | NEW |
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 #ifndef V8_WASM_OBJECTS_H_ | 5 #ifndef V8_WASM_OBJECTS_H_ |
6 #define V8_WASM_OBJECTS_H_ | 6 #define V8_WASM_OBJECTS_H_ |
7 | 7 |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/debug/interface-types.h" | 9 #include "src/debug/interface-types.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 MACRO(SMALL_CONST_NUMBER, uint32_t, num_imported_functions) \ | 349 MACRO(SMALL_CONST_NUMBER, uint32_t, num_imported_functions) \ |
350 MACRO(CONST_OBJECT, FixedArray, code_table) \ | 350 MACRO(CONST_OBJECT, FixedArray, code_table) \ |
351 MACRO(OBJECT, FixedArray, weak_exported_functions) \ | 351 MACRO(OBJECT, FixedArray, weak_exported_functions) \ |
352 MACRO(OBJECT, FixedArray, function_tables) \ | 352 MACRO(OBJECT, FixedArray, function_tables) \ |
353 MACRO(OBJECT, FixedArray, signature_tables) \ | 353 MACRO(OBJECT, FixedArray, signature_tables) \ |
354 MACRO(CONST_OBJECT, FixedArray, empty_function_tables) \ | 354 MACRO(CONST_OBJECT, FixedArray, empty_function_tables) \ |
355 MACRO(LARGE_NUMBER, size_t, embedded_mem_start) \ | 355 MACRO(LARGE_NUMBER, size_t, embedded_mem_start) \ |
356 MACRO(LARGE_NUMBER, size_t, globals_start) \ | 356 MACRO(LARGE_NUMBER, size_t, globals_start) \ |
357 MACRO(LARGE_NUMBER, uint32_t, embedded_mem_size) \ | 357 MACRO(LARGE_NUMBER, uint32_t, embedded_mem_size) \ |
358 MACRO(SMALL_CONST_NUMBER, uint32_t, min_mem_pages) \ | 358 MACRO(SMALL_CONST_NUMBER, uint32_t, min_mem_pages) \ |
359 MACRO(SMALL_CONST_NUMBER, uint32_t, max_mem_pages) \ | |
360 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \ | 359 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \ |
361 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \ | 360 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \ |
362 MACRO(WEAK_LINK, JSObject, owning_instance) \ | 361 MACRO(WEAK_LINK, JSObject, owning_instance) \ |
363 MACRO(WEAK_LINK, WasmModuleObject, wasm_module) | 362 MACRO(WEAK_LINK, WasmModuleObject, wasm_module) |
364 | 363 |
365 #if DEBUG | 364 #if DEBUG |
366 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_CONST_NUMBER, uint32_t, instance_id) | 365 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_CONST_NUMBER, uint32_t, instance_id) |
367 #else | 366 #else |
368 #define DEBUG_ONLY_TABLE(IGNORE) | 367 #define DEBUG_ONLY_TABLE(IGNORE) |
369 | 368 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 }; | 649 }; |
651 }; | 650 }; |
652 | 651 |
653 #undef DECLARE_ACCESSORS | 652 #undef DECLARE_ACCESSORS |
654 #undef DECLARE_OPTIONAL_ACCESSORS | 653 #undef DECLARE_OPTIONAL_ACCESSORS |
655 | 654 |
656 } // namespace internal | 655 } // namespace internal |
657 } // namespace v8 | 656 } // namespace v8 |
658 | 657 |
659 #endif // V8_WASM_OBJECTS_H_ | 658 #endif // V8_WASM_OBJECTS_H_ |
OLD | NEW |