| 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-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/hydrogen-osr.h" | 8 #include "src/hydrogen-osr.h" |
| 9 #include "src/mips64/lithium-codegen-mips64.h" | 9 #include "src/mips64/lithium-codegen-mips64.h" |
| 10 #include "src/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/mips64/lithium-gap-resolver-mips64.h" |
| (...skipping 4171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4182 kSaveFPRegs, | 4182 kSaveFPRegs, |
| 4183 EMIT_REMEMBERED_SET, | 4183 EMIT_REMEMBERED_SET, |
| 4184 instr->hydrogen()->SmiCheckForWriteBarrier(), | 4184 instr->hydrogen()->SmiCheckForWriteBarrier(), |
| 4185 instr->hydrogen()->PointersToHereCheckForValue()); | 4185 instr->hydrogen()->PointersToHereCheckForValue()); |
| 4186 } | 4186 } |
| 4187 } | 4187 } |
| 4188 | 4188 |
| 4189 | 4189 |
| 4190 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { | 4190 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
| 4191 ASSERT(ToRegister(instr->context()).is(cp)); | 4191 ASSERT(ToRegister(instr->context()).is(cp)); |
| 4192 ASSERT(ToRegister(instr->object()).is(a1)); | 4192 ASSERT(ToRegister(instr->object()).is(StoreIC::ReceiverRegister())); |
| 4193 ASSERT(ToRegister(instr->value()).is(a0)); | 4193 ASSERT(ToRegister(instr->value()).is(StoreIC::ValueRegister())); |
| 4194 | 4194 |
| 4195 // Name is always in a2. | 4195 __ li(StoreIC::NameRegister(), Operand(instr->name())); |
| 4196 __ li(a2, Operand(instr->name())); | |
| 4197 Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->strict_mode()); | 4196 Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->strict_mode()); |
| 4198 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 4197 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 4199 } | 4198 } |
| 4200 | 4199 |
| 4201 | 4200 |
| 4202 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { | 4201 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { |
| 4203 Condition cc = instr->hydrogen()->allow_equality() ? hi : hs; | 4202 Condition cc = instr->hydrogen()->allow_equality() ? hi : hs; |
| 4204 Operand operand((int64_t)0); | 4203 Operand operand((int64_t)0); |
| 4205 Register reg; | 4204 Register reg; |
| 4206 if (instr->index()->IsConstantOperand()) { | 4205 if (instr->index()->IsConstantOperand()) { |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4447 } else if (instr->hydrogen()->value()->representation().IsDouble()) { | 4446 } else if (instr->hydrogen()->value()->representation().IsDouble()) { |
| 4448 DoStoreKeyedFixedDoubleArray(instr); | 4447 DoStoreKeyedFixedDoubleArray(instr); |
| 4449 } else { | 4448 } else { |
| 4450 DoStoreKeyedFixedArray(instr); | 4449 DoStoreKeyedFixedArray(instr); |
| 4451 } | 4450 } |
| 4452 } | 4451 } |
| 4453 | 4452 |
| 4454 | 4453 |
| 4455 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { | 4454 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
| 4456 ASSERT(ToRegister(instr->context()).is(cp)); | 4455 ASSERT(ToRegister(instr->context()).is(cp)); |
| 4457 ASSERT(ToRegister(instr->object()).is(a2)); | 4456 ASSERT(ToRegister(instr->object()).is(KeyedStoreIC::ReceiverRegister())); |
| 4458 ASSERT(ToRegister(instr->key()).is(a1)); | 4457 ASSERT(ToRegister(instr->key()).is(KeyedStoreIC::NameRegister())); |
| 4459 ASSERT(ToRegister(instr->value()).is(a0)); | 4458 ASSERT(ToRegister(instr->value()).is(KeyedStoreIC::ValueRegister())); |
| 4460 | 4459 |
| 4461 Handle<Code> ic = (instr->strict_mode() == STRICT) | 4460 Handle<Code> ic = (instr->strict_mode() == STRICT) |
| 4462 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() | 4461 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
| 4463 : isolate()->builtins()->KeyedStoreIC_Initialize(); | 4462 : isolate()->builtins()->KeyedStoreIC_Initialize(); |
| 4464 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 4463 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 4465 } | 4464 } |
| 4466 | 4465 |
| 4467 | 4466 |
| 4468 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { | 4467 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { |
| 4469 Register object_reg = ToRegister(instr->object()); | 4468 Register object_reg = ToRegister(instr->object()); |
| (...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5942 __ li(at, scope_info); | 5941 __ li(at, scope_info); |
| 5943 __ Push(at, ToRegister(instr->function())); | 5942 __ Push(at, ToRegister(instr->function())); |
| 5944 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5943 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5945 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5944 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5946 } | 5945 } |
| 5947 | 5946 |
| 5948 | 5947 |
| 5949 #undef __ | 5948 #undef __ |
| 5950 | 5949 |
| 5951 } } // namespace v8::internal | 5950 } } // namespace v8::internal |
| OLD | NEW |