| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 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 3292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3303 offset); | 3303 offset); |
| 3304 } | 3304 } |
| 3305 } | 3305 } |
| 3306 | 3306 |
| 3307 | 3307 |
| 3308 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 3308 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
| 3309 DCHECK(ToRegister(instr->context()).is(rsi)); | 3309 DCHECK(ToRegister(instr->context()).is(rsi)); |
| 3310 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); | 3310 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); |
| 3311 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); | 3311 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); |
| 3312 | 3312 |
| 3313 if (instr->hydrogen()->HasVectorAndSlot()) { | 3313 if (FLAG_vector_ics) { |
| 3314 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); | 3314 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
| 3315 } | 3315 } |
| 3316 | 3316 |
| 3317 Handle<Code> ic = | 3317 Handle<Code> ic = |
| 3318 CodeFactory::KeyedLoadICInOptimizedCode( | 3318 CodeFactory::KeyedLoadICInOptimizedCode( |
| 3319 isolate(), instr->hydrogen()->initialization_state()).code(); | 3319 isolate(), instr->hydrogen()->initialization_state()).code(); |
| 3320 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3320 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 3321 } | 3321 } |
| 3322 | 3322 |
| 3323 | 3323 |
| (...skipping 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5926 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5926 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5927 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5927 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5928 } | 5928 } |
| 5929 | 5929 |
| 5930 | 5930 |
| 5931 #undef __ | 5931 #undef __ |
| 5932 | 5932 |
| 5933 } } // namespace v8::internal | 5933 } } // namespace v8::internal |
| 5934 | 5934 |
| 5935 #endif // V8_TARGET_ARCH_X64 | 5935 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |