| 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 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of compiler internals. | 10 // Clients of this interface shouldn't depend on lots of compiler internals. |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 void set_control_ptr(Node** control) { this->control_ = control; } | 187 void set_control_ptr(Node** control) { this->control_ = control; } |
| 188 | 188 |
| 189 void set_effect_ptr(Node** effect) { this->effect_ = effect; } | 189 void set_effect_ptr(Node** effect) { this->effect_ = effect; } |
| 190 | 190 |
| 191 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } | 191 wasm::FunctionSig* GetFunctionSignature() { return function_signature_; } |
| 192 | 192 |
| 193 void Int64LoweringForTesting(); | 193 void Int64LoweringForTesting(); |
| 194 | 194 |
| 195 void SetSourcePosition(Node* node, wasm::WasmCodePosition position); | 195 void SetSourcePosition(Node* node, wasm::WasmCodePosition position); |
| 196 | 196 |
| 197 Node* DefaultS128Value(); |
| 198 |
| 197 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); | 199 Node* SimdOp(wasm::WasmOpcode opcode, const NodeVector& inputs); |
| 198 | 200 |
| 199 private: | 201 private: |
| 200 static const int kDefaultBufferSize = 16; | 202 static const int kDefaultBufferSize = 16; |
| 201 friend class WasmTrapHelper; | 203 friend class WasmTrapHelper; |
| 202 | 204 |
| 203 Zone* zone_; | 205 Zone* zone_; |
| 204 JSGraph* jsgraph_; | 206 JSGraph* jsgraph_; |
| 205 wasm::ModuleEnv* module_; | 207 wasm::ModuleEnv* module_; |
| 206 Node* mem_buffer_; | 208 Node* mem_buffer_; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 Node** buf = Buffer(new_count); | 335 Node** buf = Buffer(new_count); |
| 334 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); | 336 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); |
| 335 return buf; | 337 return buf; |
| 336 } | 338 } |
| 337 }; | 339 }; |
| 338 } // namespace compiler | 340 } // namespace compiler |
| 339 } // namespace internal | 341 } // namespace internal |
| 340 } // namespace v8 | 342 } // namespace v8 |
| 341 | 343 |
| 342 #endif // V8_COMPILER_WASM_COMPILER_H_ | 344 #endif // V8_COMPILER_WASM_COMPILER_H_ |
| OLD | NEW |