| 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 #include "src/compiler/code-assembler.h" | 5 #include "src/compiler/code-assembler.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 305 |
| 306 void CodeAssembler::BranchIf(Node* condition, Label* if_true, Label* if_false) { | 306 void CodeAssembler::BranchIf(Node* condition, Label* if_true, Label* if_false) { |
| 307 Label if_condition_is_true(this), if_condition_is_false(this); | 307 Label if_condition_is_true(this), if_condition_is_false(this); |
| 308 Branch(condition, &if_condition_is_true, &if_condition_is_false); | 308 Branch(condition, &if_condition_is_true, &if_condition_is_false); |
| 309 Bind(&if_condition_is_true); | 309 Bind(&if_condition_is_true); |
| 310 Goto(if_true); | 310 Goto(if_true); |
| 311 Bind(&if_condition_is_false); | 311 Bind(&if_condition_is_false); |
| 312 Goto(if_false); | 312 Goto(if_false); |
| 313 } | 313 } |
| 314 | 314 |
| 315 void CodeAssembler::BranchIfException(Node* node, Label* if_exception) { |
| 316 DCHECK(!node->op()->HasProperty(Operator::kNoThrow)); |
| 317 raw_assembler_->BranchIfException(node, if_exception->label_); |
| 318 } |
| 319 |
| 315 Node* CodeAssembler::CallN(CallDescriptor* descriptor, Node* code_target, | 320 Node* CodeAssembler::CallN(CallDescriptor* descriptor, Node* code_target, |
| 316 Node** args) { | 321 Node** args) { |
| 317 CallPrologue(); | 322 CallPrologue(); |
| 318 Node* return_value = raw_assembler_->CallN(descriptor, code_target, args); | 323 Node* return_value = raw_assembler_->CallN(descriptor, code_target, args); |
| 319 CallEpilogue(); | 324 CallEpilogue(); |
| 320 return return_value; | 325 return return_value; |
| 321 } | 326 } |
| 322 | 327 |
| 323 Node* CodeAssembler::TailCallN(CallDescriptor* descriptor, Node* code_target, | 328 Node* CodeAssembler::TailCallN(CallDescriptor* descriptor, Node* code_target, |
| 324 Node** args) { | 329 Node** args) { |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 } | 1057 } |
| 1053 } | 1058 } |
| 1054 } | 1059 } |
| 1055 | 1060 |
| 1056 bound_ = true; | 1061 bound_ = true; |
| 1057 } | 1062 } |
| 1058 | 1063 |
| 1059 } // namespace compiler | 1064 } // namespace compiler |
| 1060 } // namespace internal | 1065 } // namespace internal |
| 1061 } // namespace v8 | 1066 } // namespace v8 |
| OLD | NEW |