| 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/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.h" |
| 8 #include "src/arm/lithium-gap-resolver-arm.h" | 8 #include "src/arm/lithium-gap-resolver-arm.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 2986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2997 __ mov(LoadIC::NameRegister(), Operand(instr->name())); | 2997 __ mov(LoadIC::NameRegister(), Operand(instr->name())); |
| 2998 if (FLAG_vector_ics) { | 2998 if (FLAG_vector_ics) { |
| 2999 Register vector = ToRegister(instr->temp_vector()); | 2999 Register vector = ToRegister(instr->temp_vector()); |
| 3000 ASSERT(vector.is(LoadIC::VectorRegister())); | 3000 ASSERT(vector.is(LoadIC::VectorRegister())); |
| 3001 __ Move(vector, instr->hydrogen()->feedback_vector()); | 3001 __ Move(vector, instr->hydrogen()->feedback_vector()); |
| 3002 // No need to allocate this register. | 3002 // No need to allocate this register. |
| 3003 ASSERT(LoadIC::SlotRegister().is(r0)); | 3003 ASSERT(LoadIC::SlotRegister().is(r0)); |
| 3004 __ mov(LoadIC::SlotRegister(), | 3004 __ mov(LoadIC::SlotRegister(), |
| 3005 Operand(Smi::FromInt(instr->hydrogen()->slot()))); | 3005 Operand(Smi::FromInt(instr->hydrogen()->slot()))); |
| 3006 } | 3006 } |
| 3007 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; | 3007 TypeofState mode = instr->for_typeof() ? INSIDE_TYPEOF : NOT_INSIDE_TYPEOF; |
| 3008 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode); | 3008 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode); |
| 3009 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3009 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 3010 } | 3010 } |
| 3011 | 3011 |
| 3012 | 3012 |
| 3013 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { | 3013 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { |
| 3014 Register value = ToRegister(instr->value()); | 3014 Register value = ToRegister(instr->value()); |
| 3015 Register cell = scratch0(); | 3015 Register cell = scratch0(); |
| 3016 | 3016 |
| 3017 // Load the cell. | 3017 // Load the cell. |
| (...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5890 __ Push(scope_info); | 5890 __ Push(scope_info); |
| 5891 __ push(ToRegister(instr->function())); | 5891 __ push(ToRegister(instr->function())); |
| 5892 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5892 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5893 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5893 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5894 } | 5894 } |
| 5895 | 5895 |
| 5896 | 5896 |
| 5897 #undef __ | 5897 #undef __ |
| 5898 | 5898 |
| 5899 } } // namespace v8::internal | 5899 } } // namespace v8::internal |
| OLD | NEW |