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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 __ SmiUntagToDouble(temp_double, value_reg, kSpeculativeUntag); | 392 __ SmiUntagToDouble(temp_double, value_reg, kSpeculativeUntag); |
393 | 393 |
394 Label do_store; | 394 Label do_store; |
395 __ JumpIfSmi(value_reg, &do_store); | 395 __ JumpIfSmi(value_reg, &do_store); |
396 | 396 |
397 __ CheckMap(value_reg, scratch1, Heap::kHeapNumberMapRootIndex, | 397 __ CheckMap(value_reg, scratch1, Heap::kHeapNumberMapRootIndex, |
398 miss_label, DONT_DO_SMI_CHECK); | 398 miss_label, DONT_DO_SMI_CHECK); |
399 __ Ldr(temp_double, FieldMemOperand(value_reg, HeapNumber::kValueOffset)); | 399 __ Ldr(temp_double, FieldMemOperand(value_reg, HeapNumber::kValueOffset)); |
400 | 400 |
401 __ Bind(&do_store); | 401 __ Bind(&do_store); |
402 __ AllocateHeapNumber(storage_reg, slow, scratch1, scratch2, temp_double); | 402 __ AllocateHeapNumber(storage_reg, slow, scratch1, scratch2, temp_double, |
| 403 NoReg, MUTABLE); |
403 } | 404 } |
404 | 405 |
405 // Stub never generated for non-global objects that require access checks. | 406 // Stub never generated for non-global objects that require access checks. |
406 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); | 407 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); |
407 | 408 |
408 // Perform map transition for the receiver if necessary. | 409 // Perform map transition for the receiver if necessary. |
409 if ((details.type() == FIELD) && | 410 if ((details.type() == FIELD) && |
410 (object->map()->unused_property_fields() == 0)) { | 411 (object->map()->unused_property_fields() == 0)) { |
411 // The properties must be extended before we can store the value. | 412 // The properties must be extended before we can store the value. |
412 // We jump to a runtime call that extends the properties array. | 413 // We jump to a runtime call that extends the properties array. |
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 | 1475 |
1475 // Miss case, call the runtime. | 1476 // Miss case, call the runtime. |
1476 __ Bind(&miss); | 1477 __ Bind(&miss); |
1477 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1478 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1478 } | 1479 } |
1479 | 1480 |
1480 | 1481 |
1481 } } // namespace v8::internal | 1482 } } // namespace v8::internal |
1482 | 1483 |
1483 #endif // V8_TARGET_ARCH_ARM64 | 1484 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |