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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 Handle<Code> GetFunctionCode(uint32_t index) { | 327 Handle<Code> GetFunctionCode(uint32_t index) { |
328 DCHECK_NOT_NULL(instance); | 328 DCHECK_NOT_NULL(instance); |
329 return instance->function_code[index]; | 329 return instance->function_code[index]; |
330 } | 330 } |
331 | 331 |
332 static compiler::CallDescriptor* GetWasmCallDescriptor(Zone* zone, | 332 static compiler::CallDescriptor* GetWasmCallDescriptor(Zone* zone, |
333 FunctionSig* sig); | 333 FunctionSig* sig); |
334 static compiler::CallDescriptor* GetI32WasmCallDescriptor( | 334 static compiler::CallDescriptor* GetI32WasmCallDescriptor( |
335 Zone* zone, compiler::CallDescriptor* descriptor); | 335 Zone* zone, compiler::CallDescriptor* descriptor); |
| 336 static compiler::CallDescriptor* GetI32WasmCallDescriptorForSimd( |
| 337 Zone* zone, compiler::CallDescriptor* descriptor); |
336 }; | 338 }; |
337 | 339 |
338 // A helper for printing out the names of functions. | 340 // A helper for printing out the names of functions. |
339 struct WasmFunctionName { | 341 struct WasmFunctionName { |
340 const WasmFunction* function_; | 342 const WasmFunction* function_; |
341 const WasmModule* module_; | 343 const WasmModule* module_; |
342 WasmFunctionName(const WasmFunction* function, const ModuleEnv* menv) | 344 WasmFunctionName(const WasmFunction* function, const ModuleEnv* menv) |
343 : function_(function), module_(menv ? menv->module : nullptr) {} | 345 : function_(function), module_(menv ? menv->module : nullptr) {} |
344 }; | 346 }; |
345 | 347 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 int instance_count); | 563 int instance_count); |
562 void ValidateModuleState(Isolate* isolate, Handle<JSObject> wasm_module); | 564 void ValidateModuleState(Isolate* isolate, Handle<JSObject> wasm_module); |
563 void ValidateOrphanedInstance(Isolate* isolate, Handle<JSObject> instance); | 565 void ValidateOrphanedInstance(Isolate* isolate, Handle<JSObject> instance); |
564 | 566 |
565 } // namespace testing | 567 } // namespace testing |
566 } // namespace wasm | 568 } // namespace wasm |
567 } // namespace internal | 569 } // namespace internal |
568 } // namespace v8 | 570 } // namespace v8 |
569 | 571 |
570 #endif // V8_WASM_MODULE_H_ | 572 #endif // V8_WASM_MODULE_H_ |
OLD | NEW |