| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 } else { | 599 } else { |
| 600 if (false_label_ != fall_through_) __ jmp(false_label_); | 600 if (false_label_ != fall_through_) __ jmp(false_label_); |
| 601 } | 601 } |
| 602 } | 602 } |
| 603 | 603 |
| 604 | 604 |
| 605 void FullCodeGenerator::DoTest(Expression* condition, | 605 void FullCodeGenerator::DoTest(Expression* condition, |
| 606 Label* if_true, | 606 Label* if_true, |
| 607 Label* if_false, | 607 Label* if_false, |
| 608 Label* fall_through) { | 608 Label* fall_through) { |
| 609 Handle<Code> ic = ToBooleanStub::GetUninitialized(isolate()); | 609 Handle<Code> ic = ToBooleanICStub::GetUninitialized(isolate()); |
| 610 CallIC(ic, condition->test_id()); | 610 CallIC(ic, condition->test_id()); |
| 611 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); | 611 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); |
| 612 Split(equal, if_true, if_false, fall_through); | 612 Split(equal, if_true, if_false, fall_through); |
| 613 } | 613 } |
| 614 | 614 |
| 615 | 615 |
| 616 void FullCodeGenerator::Split(Condition cc, | 616 void FullCodeGenerator::Split(Condition cc, |
| 617 Label* if_true, | 617 Label* if_true, |
| 618 Label* if_false, | 618 Label* if_false, |
| 619 Label* fall_through) { | 619 Label* fall_through) { |
| (...skipping 3459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4079 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4079 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4080 Assembler::target_address_at(call_target_address, | 4080 Assembler::target_address_at(call_target_address, |
| 4081 unoptimized_code)); | 4081 unoptimized_code)); |
| 4082 return OSR_AFTER_STACK_CHECK; | 4082 return OSR_AFTER_STACK_CHECK; |
| 4083 } | 4083 } |
| 4084 | 4084 |
| 4085 } // namespace internal | 4085 } // namespace internal |
| 4086 } // namespace v8 | 4086 } // namespace v8 |
| 4087 | 4087 |
| 4088 #endif // V8_TARGET_ARCH_X64 | 4088 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |