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

Side by Side Diff: src/mips/stub-cache-mips.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/mips/macro-assembler-mips.cc ('k') | src/objects.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 if (it.Done()) { 406 if (it.Done()) {
407 __ Branch(miss_label, ne, scratch1, Operand(current)); 407 __ Branch(miss_label, ne, scratch1, Operand(current));
408 break; 408 break;
409 } 409 }
410 __ Branch(&do_store, eq, scratch1, Operand(current)); 410 __ Branch(&do_store, eq, scratch1, Operand(current));
411 } 411 }
412 __ bind(&do_store); 412 __ bind(&do_store);
413 } 413 }
414 } else if (representation.IsDouble()) { 414 } else if (representation.IsDouble()) {
415 Label do_store, heap_number; 415 Label do_store, heap_number;
416 __ LoadRoot(scratch3, Heap::kMutableHeapNumberMapRootIndex); 416 __ LoadRoot(scratch3, Heap::kHeapNumberMapRootIndex);
417 __ AllocateHeapNumber(storage_reg, scratch1, scratch2, scratch3, slow, 417 __ AllocateHeapNumber(storage_reg, scratch1, scratch2, scratch3, slow);
418 TAG_RESULT, MUTABLE);
419 418
420 __ JumpIfNotSmi(value_reg, &heap_number); 419 __ JumpIfNotSmi(value_reg, &heap_number);
421 __ SmiUntag(scratch1, value_reg); 420 __ SmiUntag(scratch1, value_reg);
422 __ mtc1(scratch1, f6); 421 __ mtc1(scratch1, f6);
423 __ cvt_d_w(f4, f6); 422 __ cvt_d_w(f4, f6);
424 __ jmp(&do_store); 423 __ jmp(&do_store);
425 424
426 __ bind(&heap_number); 425 __ bind(&heap_number);
427 __ CheckMap(value_reg, scratch1, Heap::kHeapNumberMapRootIndex, 426 __ CheckMap(value_reg, scratch1, Heap::kHeapNumberMapRootIndex,
428 miss_label, DONT_DO_SMI_CHECK); 427 miss_label, DONT_DO_SMI_CHECK);
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 // ----------------------------------- 1506 // -----------------------------------
1508 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1507 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1509 } 1508 }
1510 1509
1511 1510
1512 #undef __ 1511 #undef __
1513 1512
1514 } } // namespace v8::internal 1513 } } // namespace v8::internal
1515 1514
1516 #endif // V8_TARGET_ARCH_MIPS 1515 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698