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/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 3268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3279 return Operand(elements_pointer_reg, | 3279 return Operand(elements_pointer_reg, |
3280 ToRegister(key), | 3280 ToRegister(key), |
3281 scale_factor, | 3281 scale_factor, |
3282 offset); | 3282 offset); |
3283 } | 3283 } |
3284 } | 3284 } |
3285 | 3285 |
3286 | 3286 |
3287 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 3287 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
3288 ASSERT(ToRegister(instr->context()).is(rsi)); | 3288 ASSERT(ToRegister(instr->context()).is(rsi)); |
3289 ASSERT(ToRegister(instr->object()).is(KeyedLoadIC::ReceiverRegister())); | 3289 ASSERT(ToRegister(instr->object()).is(LoadIC::ReceiverRegister())); |
3290 ASSERT(ToRegister(instr->key()).is(KeyedLoadIC::NameRegister())); | 3290 ASSERT(ToRegister(instr->key()).is(LoadIC::NameRegister())); |
3291 | 3291 |
3292 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); | 3292 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); |
3293 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3293 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
3294 } | 3294 } |
3295 | 3295 |
3296 | 3296 |
3297 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { | 3297 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { |
3298 Register result = ToRegister(instr->result()); | 3298 Register result = ToRegister(instr->result()); |
3299 | 3299 |
3300 if (instr->hydrogen()->from_inlined()) { | 3300 if (instr->hydrogen()->from_inlined()) { |
(...skipping 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5843 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5843 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5844 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5844 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5845 } | 5845 } |
5846 | 5846 |
5847 | 5847 |
5848 #undef __ | 5848 #undef __ |
5849 | 5849 |
5850 } } // namespace v8::internal | 5850 } } // namespace v8::internal |
5851 | 5851 |
5852 #endif // V8_TARGET_ARCH_X64 | 5852 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |