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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 3217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3228 base_offset); | 3228 base_offset); |
3229 } | 3229 } |
3230 } | 3230 } |
3231 | 3231 |
3232 | 3232 |
3233 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 3233 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
3234 DCHECK(ToRegister(instr->context()).is(esi)); | 3234 DCHECK(ToRegister(instr->context()).is(esi)); |
3235 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); | 3235 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); |
3236 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); | 3236 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); |
3237 | 3237 |
3238 if (FLAG_vector_ics) { | 3238 if (instr->hydrogen()->HasVectorAndSlot()) { |
3239 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); | 3239 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
3240 } | 3240 } |
3241 | 3241 |
3242 Handle<Code> ic = | 3242 Handle<Code> ic = |
3243 CodeFactory::KeyedLoadICInOptimizedCode( | 3243 CodeFactory::KeyedLoadICInOptimizedCode( |
3244 isolate(), instr->hydrogen()->initialization_state()).code(); | 3244 isolate(), instr->hydrogen()->initialization_state()).code(); |
3245 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3245 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
3246 } | 3246 } |
3247 | 3247 |
3248 | 3248 |
(...skipping 2513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5762 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5762 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5763 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5763 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5764 } | 5764 } |
5765 | 5765 |
5766 | 5766 |
5767 #undef __ | 5767 #undef __ |
5768 | 5768 |
5769 } } // namespace v8::internal | 5769 } } // namespace v8::internal |
5770 | 5770 |
5771 #endif // V8_TARGET_ARCH_IA32 | 5771 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |