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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" |
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 3981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3992 // Write barrier. | 3992 // Write barrier. |
3993 DCHECK_NOT_NULL(instr->temp()); | 3993 DCHECK_NOT_NULL(instr->temp()); |
3994 __ RecordWriteForMap(object_reg, to_map, new_map_reg, | 3994 __ RecordWriteForMap(object_reg, to_map, new_map_reg, |
3995 ToRegister(instr->temp()), | 3995 ToRegister(instr->temp()), |
3996 kDontSaveFPRegs); | 3996 kDontSaveFPRegs); |
3997 } else { | 3997 } else { |
3998 DCHECK(ToRegister(instr->context()).is(esi)); | 3998 DCHECK(ToRegister(instr->context()).is(esi)); |
3999 DCHECK(object_reg.is(eax)); | 3999 DCHECK(object_reg.is(eax)); |
4000 PushSafepointRegistersScope scope(this); | 4000 PushSafepointRegistersScope scope(this); |
4001 __ mov(ebx, to_map); | 4001 __ mov(ebx, to_map); |
4002 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 4002 TransitionElementsKindStub stub(isolate(), from_kind, to_kind); |
4003 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | |
4004 __ CallStub(&stub); | 4003 __ CallStub(&stub); |
4005 RecordSafepointWithLazyDeopt(instr, | 4004 RecordSafepointWithLazyDeopt(instr, |
4006 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 4005 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
4007 } | 4006 } |
4008 __ bind(¬_applicable); | 4007 __ bind(¬_applicable); |
4009 } | 4008 } |
4010 | 4009 |
4011 | 4010 |
4012 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 4011 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
4013 class DeferredStringCharCodeAt final : public LDeferredCode { | 4012 class DeferredStringCharCodeAt final : public LDeferredCode { |
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5299 __ bind(deferred->exit()); | 5298 __ bind(deferred->exit()); |
5300 __ bind(&done); | 5299 __ bind(&done); |
5301 } | 5300 } |
5302 | 5301 |
5303 #undef __ | 5302 #undef __ |
5304 | 5303 |
5305 } // namespace internal | 5304 } // namespace internal |
5306 } // namespace v8 | 5305 } // namespace v8 |
5307 | 5306 |
5308 #endif // V8_TARGET_ARCH_IA32 | 5307 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |