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 2793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2804 if (!expr->IsSuperAccess()) { | 2804 if (!expr->IsSuperAccess()) { |
2805 VisitForAccumulatorValue(expr->obj()); | 2805 VisitForAccumulatorValue(expr->obj()); |
2806 __ Move(LoadDescriptor::ReceiverRegister(), v0); | 2806 __ Move(LoadDescriptor::ReceiverRegister(), v0); |
2807 EmitNamedPropertyLoad(expr); | 2807 EmitNamedPropertyLoad(expr); |
2808 } else { | 2808 } else { |
2809 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); | 2809 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
2810 EmitLoadHomeObject(expr->obj()->AsSuperReference()); | 2810 EmitLoadHomeObject(expr->obj()->AsSuperReference()); |
2811 __ Push(result_register()); | 2811 __ Push(result_register()); |
2812 EmitNamedSuperPropertyLoad(expr); | 2812 EmitNamedSuperPropertyLoad(expr); |
2813 } | 2813 } |
2814 PrepareForBailoutForId(expr->LoadId(), TOS_REG); | |
2815 context()->Plug(v0); | |
2816 } else { | 2814 } else { |
2817 if (!expr->IsSuperAccess()) { | 2815 if (!expr->IsSuperAccess()) { |
2818 VisitForStackValue(expr->obj()); | 2816 VisitForStackValue(expr->obj()); |
2819 VisitForAccumulatorValue(expr->key()); | 2817 VisitForAccumulatorValue(expr->key()); |
2820 __ Move(LoadDescriptor::NameRegister(), v0); | 2818 __ Move(LoadDescriptor::NameRegister(), v0); |
2821 __ pop(LoadDescriptor::ReceiverRegister()); | 2819 __ pop(LoadDescriptor::ReceiverRegister()); |
2822 EmitKeyedPropertyLoad(expr); | 2820 EmitKeyedPropertyLoad(expr); |
2823 } else { | 2821 } else { |
2824 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); | 2822 VisitForStackValue(expr->obj()->AsSuperReference()->this_var()); |
2825 EmitLoadHomeObject(expr->obj()->AsSuperReference()); | 2823 EmitLoadHomeObject(expr->obj()->AsSuperReference()); |
2826 __ Push(result_register()); | 2824 __ Push(result_register()); |
2827 VisitForStackValue(expr->key()); | 2825 VisitForStackValue(expr->key()); |
2828 EmitKeyedSuperPropertyLoad(expr); | 2826 EmitKeyedSuperPropertyLoad(expr); |
2829 } | 2827 } |
2830 context()->Plug(v0); | |
2831 } | 2828 } |
| 2829 PrepareForBailoutForId(expr->LoadId(), TOS_REG); |
| 2830 context()->Plug(v0); |
2832 } | 2831 } |
2833 | 2832 |
2834 | 2833 |
2835 void FullCodeGenerator::CallIC(Handle<Code> code, | 2834 void FullCodeGenerator::CallIC(Handle<Code> code, |
2836 TypeFeedbackId id) { | 2835 TypeFeedbackId id) { |
2837 ic_total_count_++; | 2836 ic_total_count_++; |
2838 __ Call(code, RelocInfo::CODE_TARGET, id); | 2837 __ Call(code, RelocInfo::CODE_TARGET, id); |
2839 } | 2838 } |
2840 | 2839 |
2841 | 2840 |
(...skipping 2506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5348 Assembler::target_address_at(pc_immediate_load_address)) == | 5347 Assembler::target_address_at(pc_immediate_load_address)) == |
5349 reinterpret_cast<uint64_t>( | 5348 reinterpret_cast<uint64_t>( |
5350 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5349 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5351 return OSR_AFTER_STACK_CHECK; | 5350 return OSR_AFTER_STACK_CHECK; |
5352 } | 5351 } |
5353 | 5352 |
5354 | 5353 |
5355 } } // namespace v8::internal | 5354 } } // namespace v8::internal |
5356 | 5355 |
5357 #endif // V8_TARGET_ARCH_MIPS64 | 5356 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |