| 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_CODE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_CODE_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 Node* TailCallStub(const CallInterfaceDescriptor& descriptor, Node* target, | 329 Node* TailCallStub(const CallInterfaceDescriptor& descriptor, Node* target, |
| 330 Node* context, Node* arg1, Node* arg2, Node* arg3, | 330 Node* context, Node* arg1, Node* arg2, Node* arg3, |
| 331 size_t result_size = 1); | 331 size_t result_size = 1); |
| 332 Node* TailCallStub(const CallInterfaceDescriptor& descriptor, Node* target, | 332 Node* TailCallStub(const CallInterfaceDescriptor& descriptor, Node* target, |
| 333 Node* context, Node* arg1, Node* arg2, Node* arg3, | 333 Node* context, Node* arg1, Node* arg2, Node* arg3, |
| 334 Node* arg4, size_t result_size = 1); | 334 Node* arg4, size_t result_size = 1); |
| 335 | 335 |
| 336 Node* TailCallBytecodeDispatch(const CallInterfaceDescriptor& descriptor, | 336 Node* TailCallBytecodeDispatch(const CallInterfaceDescriptor& descriptor, |
| 337 Node* code_target_address, Node** args); | 337 Node* code_target_address, Node** args); |
| 338 | 338 |
| 339 Node* CallJS(Callable const& callable, Node* context, Node* function, |
| 340 Node* receiver, size_t result_size = 1); |
| 341 Node* CallJS(Callable const& callable, Node* context, Node* function, |
| 342 Node* receiver, Node* arg1, size_t result_size = 1); |
| 343 Node* CallJS(Callable const& callable, Node* context, Node* function, |
| 344 Node* receiver, Node* arg1, Node* arg2, size_t result_size = 1); |
| 345 |
| 339 // Branching helpers. | 346 // Branching helpers. |
| 340 void BranchIf(Node* condition, Label* if_true, Label* if_false); | 347 void BranchIf(Node* condition, Label* if_true, Label* if_false); |
| 341 | 348 |
| 342 #define BRANCH_HELPER(name) \ | 349 #define BRANCH_HELPER(name) \ |
| 343 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \ | 350 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \ |
| 344 BranchIf(name(a, b), if_true, if_false); \ | 351 BranchIf(name(a, b), if_true, if_false); \ |
| 345 } | 352 } |
| 346 CODE_ASSEMBLER_COMPARE_BINARY_OP_LIST(BRANCH_HELPER) | 353 CODE_ASSEMBLER_COMPARE_BINARY_OP_LIST(BRANCH_HELPER) |
| 347 #undef BRANCH_HELPER | 354 #undef BRANCH_HELPER |
| 348 | 355 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 // Map of variables to the list of value nodes that have been added from each | 418 // Map of variables to the list of value nodes that have been added from each |
| 412 // merge path in their order of merging. | 419 // merge path in their order of merging. |
| 413 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 420 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
| 414 }; | 421 }; |
| 415 | 422 |
| 416 } // namespace compiler | 423 } // namespace compiler |
| 417 } // namespace internal | 424 } // namespace internal |
| 418 } // namespace v8 | 425 } // namespace v8 |
| 419 | 426 |
| 420 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 427 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
| OLD | NEW |