| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 287   MACRO(SMALL_NUMBER, uint32_t, max_mem_pages)          \ | 287   MACRO(SMALL_NUMBER, uint32_t, max_mem_pages)          \ | 
| 288   MACRO(WEAK_LINK, WasmCompiledModule, next_instance)   \ | 288   MACRO(WEAK_LINK, WasmCompiledModule, next_instance)   \ | 
| 289   MACRO(WEAK_LINK, WasmCompiledModule, prev_instance)   \ | 289   MACRO(WEAK_LINK, WasmCompiledModule, prev_instance)   \ | 
| 290   MACRO(WEAK_LINK, JSObject, owning_instance)           \ | 290   MACRO(WEAK_LINK, JSObject, owning_instance)           \ | 
| 291   MACRO(WEAK_LINK, WasmModuleObject, wasm_module) | 291   MACRO(WEAK_LINK, WasmModuleObject, wasm_module) | 
| 292 | 292 | 
| 293 #if DEBUG | 293 #if DEBUG | 
| 294 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_NUMBER, uint32_t, instance_id) | 294 #define DEBUG_ONLY_TABLE(MACRO) MACRO(SMALL_NUMBER, uint32_t, instance_id) | 
| 295 #else | 295 #else | 
| 296 #define DEBUG_ONLY_TABLE(IGNORE) | 296 #define DEBUG_ONLY_TABLE(IGNORE) | 
| 297   uint32_t instance_id() const { return -1; } | 297   uint32_t instance_id() const { return static_cast<uint32_t>(-1); } | 
| 298 #endif | 298 #endif | 
| 299 | 299 | 
| 300 #define WCM_PROPERTY_TABLE(MACRO) \ | 300 #define WCM_PROPERTY_TABLE(MACRO) \ | 
| 301   CORE_WCM_PROPERTY_TABLE(MACRO)  \ | 301   CORE_WCM_PROPERTY_TABLE(MACRO)  \ | 
| 302   DEBUG_ONLY_TABLE(MACRO) | 302   DEBUG_ONLY_TABLE(MACRO) | 
| 303 | 303 | 
| 304  private: | 304  private: | 
| 305   enum PropertyIndices { | 305   enum PropertyIndices { | 
| 306 #define INDICES(IGNORE1, IGNORE2, NAME) kID_##NAME, | 306 #define INDICES(IGNORE1, IGNORE2, NAME) kID_##NAME, | 
| 307     WCM_PROPERTY_TABLE(INDICES) Count | 307     WCM_PROPERTY_TABLE(INDICES) Count | 
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 527   }; | 527   }; | 
| 528 }; | 528 }; | 
| 529 | 529 | 
| 530 #undef DECLARE_ACCESSORS | 530 #undef DECLARE_ACCESSORS | 
| 531 #undef DECLARE_OPTIONAL_ACCESSORS | 531 #undef DECLARE_OPTIONAL_ACCESSORS | 
| 532 | 532 | 
| 533 }  // namespace internal | 533 }  // namespace internal | 
| 534 }  // namespace v8 | 534 }  // namespace v8 | 
| 535 | 535 | 
| 536 #endif  // V8_WASM_OBJECTS_H_ | 536 #endif  // V8_WASM_OBJECTS_H_ | 
| OLD | NEW | 
|---|