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