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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Operations independent of {control} or {effect}. | 71 // Operations independent of {control} or {effect}. |
72 //----------------------------------------------------------------------- | 72 //----------------------------------------------------------------------- |
73 Node* Error(); | 73 Node* Error(); |
74 Node* Start(unsigned params); | 74 Node* Start(unsigned params); |
75 Node* Param(unsigned index, wasm::LocalType type); | 75 Node* Param(unsigned index, wasm::LocalType type); |
76 Node* Loop(Node* entry); | 76 Node* Loop(Node* entry); |
77 Node* Terminate(Node* effect, Node* control); | 77 Node* Terminate(Node* effect, Node* control); |
78 Node* Merge(unsigned count, Node** controls); | 78 Node* Merge(unsigned count, Node** controls); |
79 Node* Phi(wasm::LocalType type, unsigned count, Node** vals, Node* control); | 79 Node* Phi(wasm::LocalType type, unsigned count, Node** vals, Node* control); |
80 Node* EffectPhi(unsigned count, Node** effects, Node* control); | 80 Node* EffectPhi(unsigned count, Node** effects, Node* control); |
| 81 Node* NumberConstant(int32_t value); |
81 Node* Int32Constant(int32_t value); | 82 Node* Int32Constant(int32_t value); |
82 Node* Int64Constant(int64_t value); | 83 Node* Int64Constant(int64_t value); |
83 Node* Float32Constant(float value); | 84 Node* Float32Constant(float value); |
84 Node* Float64Constant(double value); | 85 Node* Float64Constant(double value); |
85 Node* Constant(Handle<Object> value); | 86 Node* Constant(Handle<Object> value); |
86 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right); | 87 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right); |
87 Node* Unop(wasm::WasmOpcode opcode, Node* input); | 88 Node* Unop(wasm::WasmOpcode opcode, Node* input); |
88 unsigned InputCount(Node* node); | 89 unsigned InputCount(Node* node); |
89 bool IsPhiWithMerge(Node* phi, Node* merge); | 90 bool IsPhiWithMerge(Node* phi, Node* merge); |
90 void AppendToMerge(Node* merge, Node* from); | 91 void AppendToMerge(Node* merge, Node* from); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 Node** buf = Buffer(new_count); | 246 Node** buf = Buffer(new_count); |
246 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 247 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
247 return buf; | 248 return buf; |
248 } | 249 } |
249 }; | 250 }; |
250 } // namespace compiler | 251 } // namespace compiler |
251 } // namespace internal | 252 } // namespace internal |
252 } // namespace v8 | 253 } // namespace v8 |
253 | 254 |
254 #endif // V8_COMPILER_WASM_COMPILER_H_ | 255 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |