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 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 3484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3495 base_offset); | 3495 base_offset); |
3496 } | 3496 } |
3497 } | 3497 } |
3498 | 3498 |
3499 | 3499 |
3500 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 3500 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
3501 DCHECK(ToRegister(instr->context()).is(esi)); | 3501 DCHECK(ToRegister(instr->context()).is(esi)); |
3502 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); | 3502 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); |
3503 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); | 3503 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); |
3504 | 3504 |
3505 if (FLAG_vector_ics) { | 3505 if (instr->hydrogen()->HasVectorAndSlot()) { |
3506 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); | 3506 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
3507 } | 3507 } |
3508 | 3508 |
3509 Handle<Code> ic = | 3509 Handle<Code> ic = |
3510 CodeFactory::KeyedLoadICInOptimizedCode( | 3510 CodeFactory::KeyedLoadICInOptimizedCode( |
3511 isolate(), instr->hydrogen()->initialization_state()).code(); | 3511 isolate(), instr->hydrogen()->initialization_state()).code(); |
3512 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3512 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
3513 } | 3513 } |
3514 | 3514 |
3515 | 3515 |
(...skipping 2828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6344 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6344 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6345 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6345 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6346 } | 6346 } |
6347 | 6347 |
6348 | 6348 |
6349 #undef __ | 6349 #undef __ |
6350 | 6350 |
6351 } } // namespace v8::internal | 6351 } } // namespace v8::internal |
6352 | 6352 |
6353 #endif // V8_TARGET_ARCH_X87 | 6353 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |