| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 } else { | 585 } else { |
| 586 if (false_label_ != fall_through_) __ jmp(false_label_); | 586 if (false_label_ != fall_through_) __ jmp(false_label_); |
| 587 } | 587 } |
| 588 } | 588 } |
| 589 | 589 |
| 590 | 590 |
| 591 void FullCodeGenerator::DoTest(Expression* condition, | 591 void FullCodeGenerator::DoTest(Expression* condition, |
| 592 Label* if_true, | 592 Label* if_true, |
| 593 Label* if_false, | 593 Label* if_false, |
| 594 Label* fall_through) { | 594 Label* fall_through) { |
| 595 Handle<Code> ic = ToBooleanStub::GetUninitialized(isolate()); | 595 Handle<Code> ic = ToBooleanICStub::GetUninitialized(isolate()); |
| 596 CallIC(ic, condition->test_id()); | 596 CallIC(ic, condition->test_id()); |
| 597 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); | 597 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); |
| 598 Split(equal, if_true, if_false, fall_through); | 598 Split(equal, if_true, if_false, fall_through); |
| 599 } | 599 } |
| 600 | 600 |
| 601 | 601 |
| 602 void FullCodeGenerator::Split(Condition cc, | 602 void FullCodeGenerator::Split(Condition cc, |
| 603 Label* if_true, | 603 Label* if_true, |
| 604 Label* if_false, | 604 Label* if_false, |
| 605 Label* fall_through) { | 605 Label* fall_through) { |
| (...skipping 3479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4085 Assembler::target_address_at(call_target_address, | 4085 Assembler::target_address_at(call_target_address, |
| 4086 unoptimized_code)); | 4086 unoptimized_code)); |
| 4087 return OSR_AFTER_STACK_CHECK; | 4087 return OSR_AFTER_STACK_CHECK; |
| 4088 } | 4088 } |
| 4089 | 4089 |
| 4090 | 4090 |
| 4091 } // namespace internal | 4091 } // namespace internal |
| 4092 } // namespace v8 | 4092 } // namespace v8 |
| 4093 | 4093 |
| 4094 #endif // V8_TARGET_ARCH_X87 | 4094 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |