| 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/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.h" |
| 8 #include "src/arm/lithium-gap-resolver-arm.h" | 8 #include "src/arm/lithium-gap-resolver-arm.h" |
| 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 3381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3392 return MemOperand(scratch0(), base_offset); | 3392 return MemOperand(scratch0(), base_offset); |
| 3393 } | 3393 } |
| 3394 } | 3394 } |
| 3395 | 3395 |
| 3396 | 3396 |
| 3397 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 3397 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
| 3398 DCHECK(ToRegister(instr->context()).is(cp)); | 3398 DCHECK(ToRegister(instr->context()).is(cp)); |
| 3399 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); | 3399 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); |
| 3400 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); | 3400 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); |
| 3401 | 3401 |
| 3402 if (instr->hydrogen()->HasVectorAndSlot()) { | 3402 if (FLAG_vector_ics) { |
| 3403 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); | 3403 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
| 3404 } | 3404 } |
| 3405 | 3405 |
| 3406 Handle<Code> ic = | 3406 Handle<Code> ic = |
| 3407 CodeFactory::KeyedLoadICInOptimizedCode( | 3407 CodeFactory::KeyedLoadICInOptimizedCode( |
| 3408 isolate(), instr->hydrogen()->initialization_state()).code(); | 3408 isolate(), instr->hydrogen()->initialization_state()).code(); |
| 3409 CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS); | 3409 CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS); |
| 3410 } | 3410 } |
| 3411 | 3411 |
| 3412 | 3412 |
| (...skipping 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5929 __ Push(scope_info); | 5929 __ Push(scope_info); |
| 5930 __ push(ToRegister(instr->function())); | 5930 __ push(ToRegister(instr->function())); |
| 5931 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5931 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5932 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5932 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5933 } | 5933 } |
| 5934 | 5934 |
| 5935 | 5935 |
| 5936 #undef __ | 5936 #undef __ |
| 5937 | 5937 |
| 5938 } } // namespace v8::internal | 5938 } } // namespace v8::internal |
| OLD | NEW |