| 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.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 4242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4253 } | 4253 } |
| 4254 | 4254 |
| 4255 LOperand* key = instr->key(); | 4255 LOperand* key = instr->key(); |
| 4256 if (key->IsConstantOperand()) { | 4256 if (key->IsConstantOperand()) { |
| 4257 __ Move(rbx, ToSmi(LConstantOperand::cast(key))); | 4257 __ Move(rbx, ToSmi(LConstantOperand::cast(key))); |
| 4258 } else { | 4258 } else { |
| 4259 __ Move(rbx, ToRegister(key)); | 4259 __ Move(rbx, ToRegister(key)); |
| 4260 __ Integer32ToSmi(rbx, rbx); | 4260 __ Integer32ToSmi(rbx, rbx); |
| 4261 } | 4261 } |
| 4262 | 4262 |
| 4263 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), | 4263 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind()); |
| 4264 instr->hydrogen()->kind()); | |
| 4265 __ CallStub(&stub); | 4264 __ CallStub(&stub); |
| 4266 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0); | 4265 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0); |
| 4267 __ StoreToSafepointRegisterSlot(result, result); | 4266 __ StoreToSafepointRegisterSlot(result, result); |
| 4268 } | 4267 } |
| 4269 | 4268 |
| 4270 // Deopt on smi, which means the elements array changed to dictionary mode. | 4269 // Deopt on smi, which means the elements array changed to dictionary mode. |
| 4271 Condition is_smi = __ CheckSmi(result); | 4270 Condition is_smi = __ CheckSmi(result); |
| 4272 DeoptimizeIf(is_smi, instr, DeoptimizeReason::kSmi); | 4271 DeoptimizeIf(is_smi, instr, DeoptimizeReason::kSmi); |
| 4273 } | 4272 } |
| 4274 | 4273 |
| (...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5566 __ bind(deferred->exit()); | 5565 __ bind(deferred->exit()); |
| 5567 __ bind(&done); | 5566 __ bind(&done); |
| 5568 } | 5567 } |
| 5569 | 5568 |
| 5570 #undef __ | 5569 #undef __ |
| 5571 | 5570 |
| 5572 } // namespace internal | 5571 } // namespace internal |
| 5573 } // namespace v8 | 5572 } // namespace v8 |
| 5574 | 5573 |
| 5575 #endif // V8_TARGET_ARCH_X64 | 5574 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |