| 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/interface-types.h" | 8 #include "src/debug/interface-types.h" |
| 9 #include "src/objects-inl.h" | 9 #include "src/objects-inl.h" |
| 10 #include "src/trap-handler/trap-handler.h" | 10 #include "src/trap-handler/trap-handler.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 #define WCM_WEAK_LINK(TYPE, NAME) \ | 231 #define WCM_WEAK_LINK(TYPE, NAME) \ |
| 232 WCM_OBJECT_OR_WEAK(WeakCell, weak_##NAME, kID_##NAME, obj->IsWeakCell()); \ | 232 WCM_OBJECT_OR_WEAK(WeakCell, weak_##NAME, kID_##NAME, obj->IsWeakCell()); \ |
| 233 \ | 233 \ |
| 234 Handle<TYPE> NAME() const { \ | 234 Handle<TYPE> NAME() const { \ |
| 235 return handle(TYPE::cast(weak_##NAME()->value())); \ | 235 return handle(TYPE::cast(weak_##NAME()->value())); \ |
| 236 } | 236 } |
| 237 | 237 |
| 238 #define CORE_WCM_PROPERTY_TABLE(MACRO) \ | 238 #define CORE_WCM_PROPERTY_TABLE(MACRO) \ |
| 239 MACRO(WASM_OBJECT, WasmSharedModuleData, shared) \ | 239 MACRO(WASM_OBJECT, WasmSharedModuleData, shared) \ |
| 240 MACRO(OBJECT, Context, native_context) \ |
| 240 MACRO(OBJECT, FixedArray, code_table) \ | 241 MACRO(OBJECT, FixedArray, code_table) \ |
| 241 MACRO(OBJECT, FixedArray, function_tables) \ | 242 MACRO(OBJECT, FixedArray, function_tables) \ |
| 242 MACRO(OBJECT, FixedArray, signature_tables) \ | 243 MACRO(OBJECT, FixedArray, signature_tables) \ |
| 243 MACRO(OBJECT, FixedArray, empty_function_tables) \ | 244 MACRO(OBJECT, FixedArray, empty_function_tables) \ |
| 244 MACRO(OBJECT, JSArrayBuffer, memory) \ | 245 MACRO(OBJECT, JSArrayBuffer, memory) \ |
| 245 MACRO(SMALL_NUMBER, uint32_t, min_mem_pages) \ | 246 MACRO(SMALL_NUMBER, uint32_t, min_mem_pages) \ |
| 246 MACRO(SMALL_NUMBER, uint32_t, max_mem_pages) \ | 247 MACRO(SMALL_NUMBER, uint32_t, max_mem_pages) \ |
| 247 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \ | 248 MACRO(WEAK_LINK, WasmCompiledModule, next_instance) \ |
| 248 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \ | 249 MACRO(WEAK_LINK, WasmCompiledModule, prev_instance) \ |
| 249 MACRO(WEAK_LINK, JSObject, owning_instance) \ | 250 MACRO(WEAK_LINK, JSObject, owning_instance) \ |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 }; | 445 }; |
| 445 }; | 446 }; |
| 446 | 447 |
| 447 #undef DECLARE_ACCESSORS | 448 #undef DECLARE_ACCESSORS |
| 448 #undef DECLARE_OPTIONAL_ACCESSORS | 449 #undef DECLARE_OPTIONAL_ACCESSORS |
| 449 | 450 |
| 450 } // namespace internal | 451 } // namespace internal |
| 451 } // namespace v8 | 452 } // namespace v8 |
| 452 | 453 |
| 453 #endif // V8_WASM_OBJECTS_H_ | 454 #endif // V8_WASM_OBJECTS_H_ |
| OLD | NEW |