| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 4793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4804 __ LoadRoot(r3, Heap::kFalseValueRootIndex); | 4804 __ LoadRoot(r3, Heap::kFalseValueRootIndex); |
| 4805 if (context()->IsStackValue()) __ push(r3); | 4805 if (context()->IsStackValue()) __ push(r3); |
| 4806 __ bind(&done); | 4806 __ bind(&done); |
| 4807 } | 4807 } |
| 4808 break; | 4808 break; |
| 4809 } | 4809 } |
| 4810 | 4810 |
| 4811 case Token::TYPEOF: { | 4811 case Token::TYPEOF: { |
| 4812 Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)"); | 4812 Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)"); |
| 4813 { | 4813 { |
| 4814 StackValueContext context(this); | 4814 AccumulatorValueContext context(this); |
| 4815 VisitForTypeofValue(expr->expression()); | 4815 VisitForTypeofValue(expr->expression()); |
| 4816 } | 4816 } |
| 4817 __ CallRuntime(Runtime::kTypeof, 1); | 4817 __ mr(r6, r3); |
| 4818 TypeofStub typeof_stub(isolate()); |
| 4819 __ CallStub(&typeof_stub); |
| 4818 context()->Plug(r3); | 4820 context()->Plug(r3); |
| 4819 break; | 4821 break; |
| 4820 } | 4822 } |
| 4821 | 4823 |
| 4822 default: | 4824 default: |
| 4823 UNREACHABLE(); | 4825 UNREACHABLE(); |
| 4824 } | 4826 } |
| 4825 } | 4827 } |
| 4826 | 4828 |
| 4827 | 4829 |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5449 return ON_STACK_REPLACEMENT; | 5451 return ON_STACK_REPLACEMENT; |
| 5450 } | 5452 } |
| 5451 | 5453 |
| 5452 DCHECK(interrupt_address == | 5454 DCHECK(interrupt_address == |
| 5453 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5455 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5454 return OSR_AFTER_STACK_CHECK; | 5456 return OSR_AFTER_STACK_CHECK; |
| 5455 } | 5457 } |
| 5456 } | 5458 } |
| 5457 } // namespace v8::internal | 5459 } // namespace v8::internal |
| 5458 #endif // V8_TARGET_ARCH_PPC | 5460 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |