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 3379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3390 return MemOperand(scratch0(), base_offset); | 3390 return MemOperand(scratch0(), base_offset); |
3391 } | 3391 } |
3392 } | 3392 } |
3393 | 3393 |
3394 | 3394 |
3395 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 3395 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
3396 DCHECK(ToRegister(instr->context()).is(cp)); | 3396 DCHECK(ToRegister(instr->context()).is(cp)); |
3397 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); | 3397 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); |
3398 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); | 3398 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); |
3399 | 3399 |
3400 if (FLAG_vector_ics) { | 3400 if (instr->hydrogen()->HasVectorAndSlot()) { |
3401 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); | 3401 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
3402 } | 3402 } |
3403 | 3403 |
3404 Handle<Code> ic = | 3404 Handle<Code> ic = |
3405 CodeFactory::KeyedLoadICInOptimizedCode( | 3405 CodeFactory::KeyedLoadICInOptimizedCode( |
3406 isolate(), instr->hydrogen()->initialization_state()).code(); | 3406 isolate(), instr->hydrogen()->initialization_state()).code(); |
3407 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3407 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
3408 } | 3408 } |
3409 | 3409 |
3410 | 3410 |
(...skipping 2629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6040 __ li(at, scope_info); | 6040 __ li(at, scope_info); |
6041 __ Push(at, ToRegister(instr->function())); | 6041 __ Push(at, ToRegister(instr->function())); |
6042 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6042 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6043 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6043 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6044 } | 6044 } |
6045 | 6045 |
6046 | 6046 |
6047 #undef __ | 6047 #undef __ |
6048 | 6048 |
6049 } } // namespace v8::internal | 6049 } } // namespace v8::internal |
OLD | NEW |