OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 3525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3536 | 3536 |
3537 return MemOperand(base, scratch); | 3537 return MemOperand(base, scratch); |
3538 } | 3538 } |
3539 | 3539 |
3540 | 3540 |
3541 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 3541 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
3542 DCHECK(ToRegister(instr->context()).is(cp)); | 3542 DCHECK(ToRegister(instr->context()).is(cp)); |
3543 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); | 3543 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); |
3544 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); | 3544 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); |
3545 | 3545 |
3546 if (FLAG_vector_ics) { | 3546 if (instr->hydrogen()->HasVectorAndSlot()) { |
3547 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); | 3547 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
3548 } | 3548 } |
3549 | 3549 |
3550 Handle<Code> ic = | 3550 Handle<Code> ic = |
3551 CodeFactory::KeyedLoadICInOptimizedCode( | 3551 CodeFactory::KeyedLoadICInOptimizedCode( |
3552 isolate(), instr->hydrogen()->initialization_state()).code(); | 3552 isolate(), instr->hydrogen()->initialization_state()).code(); |
3553 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3553 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
3554 } | 3554 } |
3555 | 3555 |
3556 | 3556 |
(...skipping 2618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6175 __ Push(scope_info); | 6175 __ Push(scope_info); |
6176 __ push(ToRegister(instr->function())); | 6176 __ push(ToRegister(instr->function())); |
6177 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6177 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6178 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6178 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6179 } | 6179 } |
6180 | 6180 |
6181 | 6181 |
6182 #undef __ | 6182 #undef __ |
6183 } | 6183 } |
6184 } // namespace v8::internal | 6184 } // namespace v8::internal |
OLD | NEW |