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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 if (it.Done()) { | 482 if (it.Done()) { |
483 __ j(not_equal, miss_label); | 483 __ j(not_equal, miss_label); |
484 break; | 484 break; |
485 } | 485 } |
486 __ j(equal, &do_store, Label::kNear); | 486 __ j(equal, &do_store, Label::kNear); |
487 } | 487 } |
488 __ bind(&do_store); | 488 __ bind(&do_store); |
489 } | 489 } |
490 } else if (representation.IsDouble()) { | 490 } else if (representation.IsDouble()) { |
491 Label do_store, heap_number; | 491 Label do_store, heap_number; |
492 __ AllocateHeapNumber(storage_reg, scratch1, slow); | 492 __ AllocateHeapNumber(storage_reg, scratch1, slow, MUTABLE); |
493 | 493 |
494 __ JumpIfNotSmi(value_reg, &heap_number); | 494 __ JumpIfNotSmi(value_reg, &heap_number); |
495 __ SmiToInteger32(scratch1, value_reg); | 495 __ SmiToInteger32(scratch1, value_reg); |
496 __ Cvtlsi2sd(xmm0, scratch1); | 496 __ Cvtlsi2sd(xmm0, scratch1); |
497 __ jmp(&do_store); | 497 __ jmp(&do_store); |
498 | 498 |
499 __ bind(&heap_number); | 499 __ bind(&heap_number); |
500 __ CheckMap(value_reg, masm->isolate()->factory()->heap_number_map(), | 500 __ CheckMap(value_reg, masm->isolate()->factory()->heap_number_map(), |
501 miss_label, DONT_DO_SMI_CHECK); | 501 miss_label, DONT_DO_SMI_CHECK); |
502 __ movsd(xmm0, FieldOperand(value_reg, HeapNumber::kValueOffset)); | 502 __ movsd(xmm0, FieldOperand(value_reg, HeapNumber::kValueOffset)); |
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 // ----------------------------------- | 1433 // ----------------------------------- |
1434 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1434 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1435 } | 1435 } |
1436 | 1436 |
1437 | 1437 |
1438 #undef __ | 1438 #undef __ |
1439 | 1439 |
1440 } } // namespace v8::internal | 1440 } } // namespace v8::internal |
1441 | 1441 |
1442 #endif // V8_TARGET_ARCH_X64 | 1442 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |