| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/crankshaft/x87/lithium-codegen-x87.h" | 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 4390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4401 Immediate(to_map)); | 4401 Immediate(to_map)); |
| 4402 // Write barrier. | 4402 // Write barrier. |
| 4403 DCHECK_NOT_NULL(instr->temp()); | 4403 DCHECK_NOT_NULL(instr->temp()); |
| 4404 __ RecordWriteForMap(object_reg, to_map, new_map_reg, | 4404 __ RecordWriteForMap(object_reg, to_map, new_map_reg, |
| 4405 ToRegister(instr->temp()), kDontSaveFPRegs); | 4405 ToRegister(instr->temp()), kDontSaveFPRegs); |
| 4406 } else { | 4406 } else { |
| 4407 DCHECK(ToRegister(instr->context()).is(esi)); | 4407 DCHECK(ToRegister(instr->context()).is(esi)); |
| 4408 DCHECK(object_reg.is(eax)); | 4408 DCHECK(object_reg.is(eax)); |
| 4409 PushSafepointRegistersScope scope(this); | 4409 PushSafepointRegistersScope scope(this); |
| 4410 __ mov(ebx, to_map); | 4410 __ mov(ebx, to_map); |
| 4411 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; | 4411 TransitionElementsKindStub stub(isolate(), from_kind, to_kind); |
| 4412 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); | |
| 4413 __ CallStub(&stub); | 4412 __ CallStub(&stub); |
| 4414 RecordSafepointWithLazyDeopt(instr, | 4413 RecordSafepointWithLazyDeopt(instr, |
| 4415 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 4414 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
| 4416 } | 4415 } |
| 4417 __ bind(¬_applicable); | 4416 __ bind(¬_applicable); |
| 4418 } | 4417 } |
| 4419 | 4418 |
| 4420 | 4419 |
| 4421 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 4420 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
| 4422 class DeferredStringCharCodeAt final : public LDeferredCode { | 4421 class DeferredStringCharCodeAt final : public LDeferredCode { |
| (...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5866 __ bind(deferred->exit()); | 5865 __ bind(deferred->exit()); |
| 5867 __ bind(&done); | 5866 __ bind(&done); |
| 5868 } | 5867 } |
| 5869 | 5868 |
| 5870 #undef __ | 5869 #undef __ |
| 5871 | 5870 |
| 5872 } // namespace internal | 5871 } // namespace internal |
| 5873 } // namespace v8 | 5872 } // namespace v8 |
| 5874 | 5873 |
| 5875 #endif // V8_TARGET_ARCH_X87 | 5874 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |