| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 public: | 135 public: |
| 136 enum Fields { kInstance, kIndex, kFieldCount }; | 136 enum Fields { kInstance, kIndex, kFieldCount }; |
| 137 | 137 |
| 138 DECLARE_CASTS(WasmExportedFunction); | 138 DECLARE_CASTS(WasmExportedFunction); |
| 139 | 139 |
| 140 WasmInstanceObject* instance(); | 140 WasmInstanceObject* instance(); |
| 141 int function_index(); | 141 int function_index(); |
| 142 | 142 |
| 143 static Handle<WasmExportedFunction> New(Isolate* isolate, | 143 static Handle<WasmExportedFunction> New(Isolate* isolate, |
| 144 Handle<WasmInstanceObject> instance, | 144 Handle<WasmInstanceObject> instance, |
| 145 Handle<String> name, | 145 MaybeHandle<String> maybe_name, |
| 146 Handle<Code> export_wrapper, | 146 int func_index, int arity, |
| 147 int arity, int func_index); | 147 Handle<Code> export_wrapper); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 class WasmCompiledModule : public FixedArray { | 150 class WasmCompiledModule : public FixedArray { |
| 151 public: | 151 public: |
| 152 enum Fields { kFieldCount }; | 152 enum Fields { kFieldCount }; |
| 153 | 153 |
| 154 static WasmCompiledModule* cast(Object* fixed_array) { | 154 static WasmCompiledModule* cast(Object* fixed_array) { |
| 155 SLOW_DCHECK(IsWasmCompiledModule(fixed_array)); | 155 SLOW_DCHECK(IsWasmCompiledModule(fixed_array)); |
| 156 return reinterpret_cast<WasmCompiledModule*>(fixed_array); | 156 return reinterpret_cast<WasmCompiledModule*>(fixed_array); |
| 157 } | 157 } |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 }; | 379 }; |
| 380 }; | 380 }; |
| 381 | 381 |
| 382 #undef DECLARE_ACCESSORS | 382 #undef DECLARE_ACCESSORS |
| 383 #undef DECLARE_OPTIONAL_ACCESSORS | 383 #undef DECLARE_OPTIONAL_ACCESSORS |
| 384 | 384 |
| 385 } // namespace internal | 385 } // namespace internal |
| 386 } // namespace v8 | 386 } // namespace v8 |
| 387 | 387 |
| 388 #endif // V8_WASM_OBJECTS_H_ | 388 #endif // V8_WASM_OBJECTS_H_ |
| OLD | NEW |