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

Side by Side Diff: src/arm64/stub-cache-arm64.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/arm64/macro-assembler-arm64.cc ('k') | src/deoptimizer.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 __ SmiUntagToDouble(temp_double, value_reg, kSpeculativeUntag); 392 __ SmiUntagToDouble(temp_double, value_reg, kSpeculativeUntag);
393 393
394 Label do_store; 394 Label do_store;
395 __ JumpIfSmi(value_reg, &do_store); 395 __ JumpIfSmi(value_reg, &do_store);
396 396
397 __ CheckMap(value_reg, scratch1, Heap::kHeapNumberMapRootIndex, 397 __ CheckMap(value_reg, scratch1, Heap::kHeapNumberMapRootIndex,
398 miss_label, DONT_DO_SMI_CHECK); 398 miss_label, DONT_DO_SMI_CHECK);
399 __ Ldr(temp_double, FieldMemOperand(value_reg, HeapNumber::kValueOffset)); 399 __ Ldr(temp_double, FieldMemOperand(value_reg, HeapNumber::kValueOffset));
400 400
401 __ Bind(&do_store); 401 __ Bind(&do_store);
402 __ AllocateHeapNumber(storage_reg, slow, scratch1, scratch2, temp_double); 402 __ AllocateHeapNumber(storage_reg, slow, scratch1, scratch2, temp_double,
403 NoReg, MUTABLE);
403 } 404 }
404 405
405 // Stub never generated for non-global objects that require access checks. 406 // Stub never generated for non-global objects that require access checks.
406 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); 407 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded());
407 408
408 // Perform map transition for the receiver if necessary. 409 // Perform map transition for the receiver if necessary.
409 if ((details.type() == FIELD) && 410 if ((details.type() == FIELD) &&
410 (object->map()->unused_property_fields() == 0)) { 411 (object->map()->unused_property_fields() == 0)) {
411 // The properties must be extended before we can store the value. 412 // The properties must be extended before we can store the value.
412 // We jump to a runtime call that extends the properties array. 413 // We jump to a runtime call that extends the properties array.
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 1475
1475 // Miss case, call the runtime. 1476 // Miss case, call the runtime.
1476 __ Bind(&miss); 1477 __ Bind(&miss);
1477 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1478 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1478 } 1479 }
1479 1480
1480 1481
1481 } } // namespace v8::internal 1482 } } // namespace v8::internal
1482 1483
1483 #endif // V8_TARGET_ARCH_ARM64 1484 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698