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

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

Issue 334323003: Reland r22082 "Replace HeapNumber as doublebox with an explicit MutableHeapNumber." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Migrations test fixed 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/arm/macro-assembler-arm.cc ('k') | src/arm64/macro-assembler-arm64.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_ARM 7 #if V8_TARGET_ARCH_ARM
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 if (it.Done()) { 419 if (it.Done()) {
420 __ b(ne, miss_label); 420 __ b(ne, miss_label);
421 break; 421 break;
422 } 422 }
423 __ b(eq, &do_store); 423 __ b(eq, &do_store);
424 } 424 }
425 __ bind(&do_store); 425 __ bind(&do_store);
426 } 426 }
427 } else if (representation.IsDouble()) { 427 } else if (representation.IsDouble()) {
428 Label do_store, heap_number; 428 Label do_store, heap_number;
429 __ LoadRoot(scratch3, Heap::kHeapNumberMapRootIndex); 429 __ LoadRoot(scratch3, Heap::kMutableHeapNumberMapRootIndex);
430 __ AllocateHeapNumber(storage_reg, scratch1, scratch2, scratch3, slow); 430 __ AllocateHeapNumber(storage_reg, scratch1, scratch2, scratch3, slow,
431 TAG_RESULT, MUTABLE);
431 432
432 __ JumpIfNotSmi(value_reg, &heap_number); 433 __ JumpIfNotSmi(value_reg, &heap_number);
433 __ SmiUntag(scratch1, value_reg); 434 __ SmiUntag(scratch1, value_reg);
434 __ vmov(s0, scratch1); 435 __ vmov(s0, scratch1);
435 __ vcvt_f64_s32(d0, s0); 436 __ vcvt_f64_s32(d0, s0);
436 __ jmp(&do_store); 437 __ jmp(&do_store);
437 438
438 __ bind(&heap_number); 439 __ bind(&heap_number);
439 __ CheckMap(value_reg, scratch1, Heap::kHeapNumberMapRootIndex, 440 __ CheckMap(value_reg, scratch1, Heap::kHeapNumberMapRootIndex,
440 miss_label, DONT_DO_SMI_CHECK); 441 miss_label, DONT_DO_SMI_CHECK);
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 // ----------------------------------- 1514 // -----------------------------------
1514 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1515 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1515 } 1516 }
1516 1517
1517 1518
1518 #undef __ 1519 #undef __
1519 1520
1520 } } // namespace v8::internal 1521 } } // namespace v8::internal
1521 1522
1522 #endif // V8_TARGET_ARCH_ARM 1523 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698