Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: src/x64/stub-cache-x64.cc

Issue 360023003: Revert "Replace HeapNumber as doublebox with an explicit MutableHeapNumber." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | src/x87/macro-assembler-x87.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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, MUTABLE); 492 __ AllocateHeapNumber(storage_reg, scratch1, slow);
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
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
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | src/x87/macro-assembler-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698