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 4289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4300 } else { | 4300 } else { |
4301 // We should never get here at runtime because there is a smi check on | 4301 // We should never get here at runtime because there is a smi check on |
4302 // the key before this point. | 4302 // the key before this point. |
4303 __ int3(); | 4303 __ int3(); |
4304 } | 4304 } |
4305 } else { | 4305 } else { |
4306 __ Move(ebx, ToRegister(key)); | 4306 __ Move(ebx, ToRegister(key)); |
4307 __ SmiTag(ebx); | 4307 __ SmiTag(ebx); |
4308 } | 4308 } |
4309 | 4309 |
4310 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), | 4310 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind()); |
4311 instr->hydrogen()->kind()); | |
4312 __ CallStub(&stub); | 4311 __ CallStub(&stub); |
4313 RecordSafepointWithLazyDeopt( | 4312 RecordSafepointWithLazyDeopt( |
4314 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 4313 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
4315 __ StoreToSafepointRegisterSlot(result, result); | 4314 __ StoreToSafepointRegisterSlot(result, result); |
4316 } | 4315 } |
4317 | 4316 |
4318 // Deopt on smi, which means the elements array changed to dictionary mode. | 4317 // Deopt on smi, which means the elements array changed to dictionary mode. |
4319 __ test(result, Immediate(kSmiTagMask)); | 4318 __ test(result, Immediate(kSmiTagMask)); |
4320 DeoptimizeIf(equal, instr, DeoptimizeReason::kSmi); | 4319 DeoptimizeIf(equal, instr, DeoptimizeReason::kSmi); |
4321 } | 4320 } |
(...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5772 __ bind(deferred->exit()); | 5771 __ bind(deferred->exit()); |
5773 __ bind(&done); | 5772 __ bind(&done); |
5774 } | 5773 } |
5775 | 5774 |
5776 #undef __ | 5775 #undef __ |
5777 | 5776 |
5778 } // namespace internal | 5777 } // namespace internal |
5779 } // namespace v8 | 5778 } // namespace v8 |
5780 | 5779 |
5781 #endif // V8_TARGET_ARCH_X87 | 5780 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |