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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "ia32/lithium-codegen-ia32.h" | 9 #include "ia32/lithium-codegen-ia32.h" |
10 #include "ic.h" | 10 #include "ic.h" |
(...skipping 4755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4766 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 4766 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; |
4767 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | 4767 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); |
4768 __ CallStub(&stub); | 4768 __ CallStub(&stub); |
4769 RecordSafepointWithLazyDeopt(instr, | 4769 RecordSafepointWithLazyDeopt(instr, |
4770 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 4770 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
4771 } | 4771 } |
4772 __ bind(¬_applicable); | 4772 __ bind(¬_applicable); |
4773 } | 4773 } |
4774 | 4774 |
4775 | 4775 |
| 4776 void LCodeGen::DoArrayShift(LArrayShift* instr) { |
| 4777 ASSERT(ToRegister(instr->context()).is(esi)); |
| 4778 ASSERT(ToRegister(instr->object()).is(eax)); |
| 4779 ASSERT(ToRegister(instr->result()).is(eax)); |
| 4780 ArrayShiftStub stub(isolate(), instr->hydrogen()->kind()); |
| 4781 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
| 4782 } |
| 4783 |
| 4784 |
4776 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 4785 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
4777 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { | 4786 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { |
4778 public: | 4787 public: |
4779 DeferredStringCharCodeAt(LCodeGen* codegen, | 4788 DeferredStringCharCodeAt(LCodeGen* codegen, |
4780 LStringCharCodeAt* instr, | 4789 LStringCharCodeAt* instr, |
4781 const X87Stack& x87_stack) | 4790 const X87Stack& x87_stack) |
4782 : LDeferredCode(codegen, x87_stack), instr_(instr) { } | 4791 : LDeferredCode(codegen, x87_stack), instr_(instr) { } |
4783 virtual void Generate() V8_OVERRIDE { | 4792 virtual void Generate() V8_OVERRIDE { |
4784 codegen()->DoDeferredStringCharCodeAt(instr_); | 4793 codegen()->DoDeferredStringCharCodeAt(instr_); |
4785 } | 4794 } |
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6431 __ bind(deferred->exit()); | 6440 __ bind(deferred->exit()); |
6432 __ bind(&done); | 6441 __ bind(&done); |
6433 } | 6442 } |
6434 | 6443 |
6435 | 6444 |
6436 #undef __ | 6445 #undef __ |
6437 | 6446 |
6438 } } // namespace v8::internal | 6447 } } // namespace v8::internal |
6439 | 6448 |
6440 #endif // V8_TARGET_ARCH_IA32 | 6449 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |