| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 bool asm_js() { return origin == kAsmJsOrigin; } | 321 bool asm_js() { return origin == kAsmJsOrigin; } |
| 322 | 322 |
| 323 Handle<Code> GetCodeOrPlaceholder(uint32_t index) const; | 323 Handle<Code> GetCodeOrPlaceholder(uint32_t index) const; |
| 324 Handle<Code> GetImportCode(uint32_t index); | 324 Handle<Code> GetImportCode(uint32_t index); |
| 325 | 325 |
| 326 static compiler::CallDescriptor* GetWasmCallDescriptor(Zone* zone, | 326 static compiler::CallDescriptor* GetWasmCallDescriptor(Zone* zone, |
| 327 FunctionSig* sig); | 327 FunctionSig* sig); |
| 328 static compiler::CallDescriptor* GetI32WasmCallDescriptor( | 328 static compiler::CallDescriptor* GetI32WasmCallDescriptor( |
| 329 Zone* zone, compiler::CallDescriptor* descriptor); | 329 Zone* zone, compiler::CallDescriptor* descriptor); |
| 330 static compiler::CallDescriptor* GetI32WasmCallDescriptorForSimd( |
| 331 Zone* zone, compiler::CallDescriptor* descriptor); |
| 330 compiler::CallDescriptor* GetCallDescriptor(Zone* zone, uint32_t index); | 332 compiler::CallDescriptor* GetCallDescriptor(Zone* zone, uint32_t index); |
| 331 }; | 333 }; |
| 332 | 334 |
| 333 // A helper for printing out the names of functions. | 335 // A helper for printing out the names of functions. |
| 334 struct WasmFunctionName { | 336 struct WasmFunctionName { |
| 335 const WasmFunction* function_; | 337 const WasmFunction* function_; |
| 336 const WasmModule* module_; | 338 const WasmModule* module_; |
| 337 WasmFunctionName(const WasmFunction* function, const ModuleEnv* menv) | 339 WasmFunctionName(const WasmFunction* function, const ModuleEnv* menv) |
| 338 : function_(function), module_(menv ? menv->module : nullptr) {} | 340 : function_(function), module_(menv ? menv->module : nullptr) {} |
| 339 }; | 341 }; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 412 |
| 411 int32_t CallFunction(Isolate* isolate, Handle<JSObject> instance, | 413 int32_t CallFunction(Isolate* isolate, Handle<JSObject> instance, |
| 412 ErrorThrower* thrower, const char* name, int argc, | 414 ErrorThrower* thrower, const char* name, int argc, |
| 413 Handle<Object> argv[]); | 415 Handle<Object> argv[]); |
| 414 } // namespace testing | 416 } // namespace testing |
| 415 } // namespace wasm | 417 } // namespace wasm |
| 416 } // namespace internal | 418 } // namespace internal |
| 417 } // namespace v8 | 419 } // namespace v8 |
| 418 | 420 |
| 419 #endif // V8_WASM_MODULE_H_ | 421 #endif // V8_WASM_MODULE_H_ |
| OLD | NEW |