| 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 318 |
| 319 Handle<Code> GetFunctionCode(uint32_t index) { | 319 Handle<Code> GetFunctionCode(uint32_t index) { |
| 320 DCHECK_NOT_NULL(instance); | 320 DCHECK_NOT_NULL(instance); |
| 321 return instance->function_code[index]; | 321 return instance->function_code[index]; |
| 322 } | 322 } |
| 323 | 323 |
| 324 static compiler::CallDescriptor* GetWasmCallDescriptor(Zone* zone, | 324 static compiler::CallDescriptor* GetWasmCallDescriptor(Zone* zone, |
| 325 FunctionSig* sig); | 325 FunctionSig* sig); |
| 326 static compiler::CallDescriptor* GetI32WasmCallDescriptor( | 326 static compiler::CallDescriptor* GetI32WasmCallDescriptor( |
| 327 Zone* zone, compiler::CallDescriptor* descriptor); | 327 Zone* zone, compiler::CallDescriptor* descriptor); |
| 328 static compiler::CallDescriptor* GetI32WasmCallDescriptorForSimd( |
| 329 Zone* zone, compiler::CallDescriptor* descriptor); |
| 328 }; | 330 }; |
| 329 | 331 |
| 330 // A helper for printing out the names of functions. | 332 // A helper for printing out the names of functions. |
| 331 struct WasmFunctionName { | 333 struct WasmFunctionName { |
| 332 const WasmFunction* function_; | 334 const WasmFunction* function_; |
| 333 const WasmModule* module_; | 335 const WasmModule* module_; |
| 334 WasmFunctionName(const WasmFunction* function, const ModuleEnv* menv) | 336 WasmFunctionName(const WasmFunction* function, const ModuleEnv* menv) |
| 335 : function_(function), module_(menv ? menv->module : nullptr) {} | 337 : function_(function), module_(menv ? menv->module : nullptr) {} |
| 336 }; | 338 }; |
| 337 | 339 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 int instance_count); | 550 int instance_count); |
| 549 void ValidateModuleState(Isolate* isolate, Handle<JSObject> module_obj); | 551 void ValidateModuleState(Isolate* isolate, Handle<JSObject> module_obj); |
| 550 void ValidateOrphanedInstance(Isolate* isolate, Handle<JSObject> instance); | 552 void ValidateOrphanedInstance(Isolate* isolate, Handle<JSObject> instance); |
| 551 | 553 |
| 552 } // namespace testing | 554 } // namespace testing |
| 553 } // namespace wasm | 555 } // namespace wasm |
| 554 } // namespace internal | 556 } // namespace internal |
| 555 } // namespace v8 | 557 } // namespace v8 |
| 556 | 558 |
| 557 #endif // V8_WASM_MODULE_H_ | 559 #endif // V8_WASM_MODULE_H_ |
| OLD | NEW |