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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 Node* Loop(Node* entry); | 91 Node* Loop(Node* entry); |
92 Node* Terminate(Node* effect, Node* control); | 92 Node* Terminate(Node* effect, Node* control); |
93 Node* Merge(unsigned count, Node** controls); | 93 Node* Merge(unsigned count, Node** controls); |
94 Node* Phi(wasm::LocalType type, unsigned count, Node** vals, Node* control); | 94 Node* Phi(wasm::LocalType type, unsigned count, Node** vals, Node* control); |
95 Node* EffectPhi(unsigned count, Node** effects, Node* control); | 95 Node* EffectPhi(unsigned count, Node** effects, Node* control); |
96 Node* NumberConstant(int32_t value); | 96 Node* NumberConstant(int32_t value); |
97 Node* Int32Constant(int32_t value); | 97 Node* Int32Constant(int32_t value); |
98 Node* Int64Constant(int64_t value); | 98 Node* Int64Constant(int64_t value); |
99 Node* Float32Constant(float value); | 99 Node* Float32Constant(float value); |
100 Node* Float64Constant(double value); | 100 Node* Float64Constant(double value); |
101 Node* Constant(Handle<Object> value); | 101 Node* HeapConstant(Handle<HeapObject> value); |
102 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right, | 102 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right, |
103 wasm::WasmCodePosition position = wasm::kNoCodePosition); | 103 wasm::WasmCodePosition position = wasm::kNoCodePosition); |
104 Node* Unop(wasm::WasmOpcode opcode, Node* input, | 104 Node* Unop(wasm::WasmOpcode opcode, Node* input, |
105 wasm::WasmCodePosition position = wasm::kNoCodePosition); | 105 wasm::WasmCodePosition position = wasm::kNoCodePosition); |
106 unsigned InputCount(Node* node); | 106 unsigned InputCount(Node* node); |
107 bool IsPhiWithMerge(Node* phi, Node* merge); | 107 bool IsPhiWithMerge(Node* phi, Node* merge); |
108 void AppendToMerge(Node* merge, Node* from); | 108 void AppendToMerge(Node* merge, Node* from); |
109 void AppendToPhi(Node* phi, Node* from); | 109 void AppendToPhi(Node* phi, Node* from); |
110 | 110 |
111 //----------------------------------------------------------------------- | 111 //----------------------------------------------------------------------- |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 Node** buf = Buffer(new_count); | 305 Node** buf = Buffer(new_count); |
306 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 306 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
307 return buf; | 307 return buf; |
308 } | 308 } |
309 }; | 309 }; |
310 } // namespace compiler | 310 } // namespace compiler |
311 } // namespace internal | 311 } // namespace internal |
312 } // namespace v8 | 312 } // namespace v8 |
313 | 313 |
314 #endif // V8_COMPILER_WASM_COMPILER_H_ | 314 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |