| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 4787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4798 PrepareForBailoutForId(expr->MaterializeFalseId(), NO_REGISTERS); | 4798 PrepareForBailoutForId(expr->MaterializeFalseId(), NO_REGISTERS); |
| 4799 __ LoadRoot(v0, Heap::kFalseValueRootIndex); | 4799 __ LoadRoot(v0, Heap::kFalseValueRootIndex); |
| 4800 if (context()->IsStackValue()) __ push(v0); | 4800 if (context()->IsStackValue()) __ push(v0); |
| 4801 __ bind(&done); | 4801 __ bind(&done); |
| 4802 } | 4802 } |
| 4803 break; | 4803 break; |
| 4804 } | 4804 } |
| 4805 | 4805 |
| 4806 case Token::TYPEOF: { | 4806 case Token::TYPEOF: { |
| 4807 Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)"); | 4807 Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)"); |
| 4808 { StackValueContext context(this); | 4808 { |
| 4809 AccumulatorValueContext context(this); |
| 4809 VisitForTypeofValue(expr->expression()); | 4810 VisitForTypeofValue(expr->expression()); |
| 4810 } | 4811 } |
| 4811 __ CallRuntime(Runtime::kTypeof, 1); | 4812 __ mov(a3, v0); |
| 4813 TypeofStub typeof_stub(isolate()); |
| 4814 __ CallStub(&typeof_stub); |
| 4812 context()->Plug(v0); | 4815 context()->Plug(v0); |
| 4813 break; | 4816 break; |
| 4814 } | 4817 } |
| 4815 | 4818 |
| 4816 default: | 4819 default: |
| 4817 UNREACHABLE(); | 4820 UNREACHABLE(); |
| 4818 } | 4821 } |
| 4819 } | 4822 } |
| 4820 | 4823 |
| 4821 | 4824 |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5451 Assembler::target_address_at(pc_immediate_load_address)) == | 5454 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5452 reinterpret_cast<uint64_t>( | 5455 reinterpret_cast<uint64_t>( |
| 5453 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5456 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5454 return OSR_AFTER_STACK_CHECK; | 5457 return OSR_AFTER_STACK_CHECK; |
| 5455 } | 5458 } |
| 5456 | 5459 |
| 5457 | 5460 |
| 5458 } } // namespace v8::internal | 5461 } } // namespace v8::internal |
| 5459 | 5462 |
| 5460 #endif // V8_TARGET_ARCH_MIPS64 | 5463 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |