| 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 3964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3975 } else { | 3975 } else { |
| 3976 // We should never get here at runtime because there is a smi check on | 3976 // We should never get here at runtime because there is a smi check on |
| 3977 // the key before this point. | 3977 // the key before this point. |
| 3978 __ int3(); | 3978 __ int3(); |
| 3979 } | 3979 } |
| 3980 } else { | 3980 } else { |
| 3981 __ Move(ebx, ToRegister(key)); | 3981 __ Move(ebx, ToRegister(key)); |
| 3982 __ SmiTag(ebx); | 3982 __ SmiTag(ebx); |
| 3983 } | 3983 } |
| 3984 | 3984 |
| 3985 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), | 3985 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind()); |
| 3986 instr->hydrogen()->kind()); | |
| 3987 __ CallStub(&stub); | 3986 __ CallStub(&stub); |
| 3988 RecordSafepointWithLazyDeopt( | 3987 RecordSafepointWithLazyDeopt( |
| 3989 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 3988 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
| 3990 __ StoreToSafepointRegisterSlot(result, result); | 3989 __ StoreToSafepointRegisterSlot(result, result); |
| 3991 } | 3990 } |
| 3992 | 3991 |
| 3993 // Deopt on smi, which means the elements array changed to dictionary mode. | 3992 // Deopt on smi, which means the elements array changed to dictionary mode. |
| 3994 __ test(result, Immediate(kSmiTagMask)); | 3993 __ test(result, Immediate(kSmiTagMask)); |
| 3995 DeoptimizeIf(equal, instr, DeoptimizeReason::kSmi); | 3994 DeoptimizeIf(equal, instr, DeoptimizeReason::kSmi); |
| 3996 } | 3995 } |
| (...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5283 __ bind(deferred->exit()); | 5282 __ bind(deferred->exit()); |
| 5284 __ bind(&done); | 5283 __ bind(&done); |
| 5285 } | 5284 } |
| 5286 | 5285 |
| 5287 #undef __ | 5286 #undef __ |
| 5288 | 5287 |
| 5289 } // namespace internal | 5288 } // namespace internal |
| 5290 } // namespace v8 | 5289 } // namespace v8 |
| 5291 | 5290 |
| 5292 #endif // V8_TARGET_ARCH_IA32 | 5291 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |