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

Side by Side Diff: src/ia32/stub-cache-ia32.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/ia32/macro-assembler-ia32.cc ('k') | src/json-parser.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_IA32 7 #if V8_TARGET_ARCH_IA32
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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 if (it.Done()) { 516 if (it.Done()) {
517 __ j(not_equal, miss_label); 517 __ j(not_equal, miss_label);
518 break; 518 break;
519 } 519 }
520 __ j(equal, &do_store, Label::kNear); 520 __ j(equal, &do_store, Label::kNear);
521 } 521 }
522 __ bind(&do_store); 522 __ bind(&do_store);
523 } 523 }
524 } else if (representation.IsDouble()) { 524 } else if (representation.IsDouble()) {
525 Label do_store, heap_number; 525 Label do_store, heap_number;
526 __ AllocateHeapNumber(storage_reg, scratch1, scratch2, slow, MUTABLE); 526 __ AllocateHeapNumber(storage_reg, scratch1, scratch2, slow);
527 527
528 __ JumpIfNotSmi(value_reg, &heap_number); 528 __ JumpIfNotSmi(value_reg, &heap_number);
529 __ SmiUntag(value_reg); 529 __ SmiUntag(value_reg);
530 __ Cvtsi2sd(xmm0, value_reg); 530 __ Cvtsi2sd(xmm0, value_reg);
531 __ SmiTag(value_reg); 531 __ SmiTag(value_reg);
532 __ jmp(&do_store); 532 __ jmp(&do_store);
533 533
534 __ bind(&heap_number); 534 __ bind(&heap_number);
535 __ CheckMap(value_reg, masm->isolate()->factory()->heap_number_map(), 535 __ CheckMap(value_reg, masm->isolate()->factory()->heap_number_map(),
536 miss_label, DONT_DO_SMI_CHECK); 536 miss_label, DONT_DO_SMI_CHECK);
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 // ----------------------------------- 1491 // -----------------------------------
1492 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1492 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1493 } 1493 }
1494 1494
1495 1495
1496 #undef __ 1496 #undef __
1497 1497
1498 } } // namespace v8::internal 1498 } } // namespace v8::internal
1499 1499
1500 #endif // V8_TARGET_ARCH_IA32 1500 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/json-parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698