| 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 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 2901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2912 | 2912 |
| 2913 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2913 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
| 2914 DCHECK(ToRegister(instr->context()).is(cp)); | 2914 DCHECK(ToRegister(instr->context()).is(cp)); |
| 2915 DCHECK(ToRegister(instr->global_object()) | 2915 DCHECK(ToRegister(instr->global_object()) |
| 2916 .is(LoadDescriptor::ReceiverRegister())); | 2916 .is(LoadDescriptor::ReceiverRegister())); |
| 2917 DCHECK(ToRegister(instr->result()).is(v0)); | 2917 DCHECK(ToRegister(instr->result()).is(v0)); |
| 2918 | 2918 |
| 2919 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); | 2919 __ li(LoadDescriptor::NameRegister(), Operand(instr->name())); |
| 2920 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); | 2920 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
| 2921 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; | 2921 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; |
| 2922 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, | 2922 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY, |
| 2923 PREMONOMORPHIC).code(); | 2923 PREMONOMORPHIC).code(); |
| 2924 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2924 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 2925 } | 2925 } |
| 2926 | 2926 |
| 2927 | 2927 |
| 2928 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2928 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
| 2929 Register context = ToRegister(instr->context()); | 2929 Register context = ToRegister(instr->context()); |
| 2930 Register result = ToRegister(instr->result()); | 2930 Register result = ToRegister(instr->result()); |
| 2931 | 2931 |
| 2932 __ ld(result, ContextOperand(context, instr->slot_index())); | 2932 __ ld(result, ContextOperand(context, instr->slot_index())); |
| (...skipping 3185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6118 __ Push(at, ToRegister(instr->function())); | 6118 __ Push(at, ToRegister(instr->function())); |
| 6119 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6119 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6120 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6120 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6121 } | 6121 } |
| 6122 | 6122 |
| 6123 | 6123 |
| 6124 #undef __ | 6124 #undef __ |
| 6125 | 6125 |
| 6126 } // namespace internal | 6126 } // namespace internal |
| 6127 } // namespace v8 | 6127 } // namespace v8 |
| OLD | NEW |