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_COMPILER_WASM_COMPILER_H_ | 5 #ifndef V8_COMPILER_WASM_COMPILER_H_ |
6 #define V8_COMPILER_WASM_COMPILER_H_ | 6 #define V8_COMPILER_WASM_COMPILER_H_ |
7 | 7 |
8 // Clients of this interface shouldn't depend on lots of compiler internals. | 8 // Clients of this interface shouldn't depend on lots of compiler internals. |
9 // Do not include anything from src/compiler here! | 9 // Do not include anything from src/compiler here! |
10 #include "src/wasm/wasm-opcodes.h" | 10 #include "src/wasm/wasm-opcodes.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 Node* Return(unsigned count, Node** vals); | 100 Node* Return(unsigned count, Node** vals); |
101 Node* ReturnVoid(); | 101 Node* ReturnVoid(); |
102 Node* Unreachable(); | 102 Node* Unreachable(); |
103 | 103 |
104 Node* CallDirect(uint32_t index, Node** args); | 104 Node* CallDirect(uint32_t index, Node** args); |
105 Node* CallImport(uint32_t index, Node** args); | 105 Node* CallImport(uint32_t index, Node** args); |
106 Node* CallIndirect(uint32_t index, Node** args); | 106 Node* CallIndirect(uint32_t index, Node** args); |
107 void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); | 107 void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); |
108 void BuildWasmToJSWrapper(Handle<JSFunction> function, | 108 void BuildWasmToJSWrapper(Handle<JSFunction> function, |
109 wasm::FunctionSig* sig); | 109 wasm::FunctionSig* sig); |
| 110 |
| 111 Node* BuildJavaScriptToNumber(Node* node, Node* context, Node* effect, |
| 112 Node* control); |
110 Node* ToJS(Node* node, Node* context, wasm::LocalType type); | 113 Node* ToJS(Node* node, Node* context, wasm::LocalType type); |
111 Node* FromJS(Node* node, Node* context, wasm::LocalType type); | 114 Node* FromJS(Node* node, Node* context, wasm::LocalType type); |
112 Node* Invert(Node* node); | 115 Node* Invert(Node* node); |
113 Node* FunctionTable(); | 116 Node* FunctionTable(); |
114 | 117 |
115 //----------------------------------------------------------------------- | 118 //----------------------------------------------------------------------- |
116 // Operations that concern the linear memory. | 119 // Operations that concern the linear memory. |
117 //----------------------------------------------------------------------- | 120 //----------------------------------------------------------------------- |
118 Node* MemSize(uint32_t offset); | 121 Node* MemSize(uint32_t offset); |
119 Node* LoadGlobal(uint32_t index); | 122 Node* LoadGlobal(uint32_t index); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 Node** buf = Buffer(new_count); | 248 Node** buf = Buffer(new_count); |
246 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 249 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
247 return buf; | 250 return buf; |
248 } | 251 } |
249 }; | 252 }; |
250 } // namespace compiler | 253 } // namespace compiler |
251 } // namespace internal | 254 } // namespace internal |
252 } // namespace v8 | 255 } // namespace v8 |
253 | 256 |
254 #endif // V8_COMPILER_WASM_COMPILER_H_ | 257 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |