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); | |
404 } | 403 } |
405 | 404 |
406 // Stub never generated for non-global objects that require access checks. | 405 // Stub never generated for non-global objects that require access checks. |
407 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); | 406 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); |
408 | 407 |
409 // Perform map transition for the receiver if necessary. | 408 // Perform map transition for the receiver if necessary. |
410 if ((details.type() == FIELD) && | 409 if ((details.type() == FIELD) && |
411 (object->map()->unused_property_fields() == 0)) { | 410 (object->map()->unused_property_fields() == 0)) { |
412 // The properties must be extended before we can store the value. | 411 // The properties must be extended before we can store the value. |
413 // We jump to a runtime call that extends the properties array. | 412 // We jump to a runtime call that extends the properties array. |
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1475 | 1474 |
1476 // Miss case, call the runtime. | 1475 // Miss case, call the runtime. |
1477 __ Bind(&miss); | 1476 __ Bind(&miss); |
1478 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1477 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1479 } | 1478 } |
1480 | 1479 |
1481 | 1480 |
1482 } } // namespace v8::internal | 1481 } } // namespace v8::internal |
1483 | 1482 |
1484 #endif // V8_TARGET_ARCH_ARM64 | 1483 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |