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

Side by Side Diff: src/ic/arm/handler-compiler-arm.cc

Issue 587203002: ExtendStorageStub added, it is aimed for extending objects backing store when it runs out of space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 years, 2 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/interface-descriptors-ia32.cc ('k') | src/ic/arm64/handler-compiler-arm64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ic/call-optimization.h" 9 #include "src/ic/call-optimization.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 __ vstr(d0, FieldMemOperand(storage_reg, HeapNumber::kValueOffset)); 389 __ vstr(d0, FieldMemOperand(storage_reg, HeapNumber::kValueOffset));
390 } 390 }
391 391
392 // Stub never generated for objects that require access checks. 392 // Stub never generated for objects that require access checks.
393 DCHECK(!transition->is_access_check_needed()); 393 DCHECK(!transition->is_access_check_needed());
394 394
395 // Perform map transition for the receiver if necessary. 395 // Perform map transition for the receiver if necessary.
396 if (details.type() == FIELD && 396 if (details.type() == FIELD &&
397 Map::cast(transition->GetBackPointer())->unused_property_fields() == 0) { 397 Map::cast(transition->GetBackPointer())->unused_property_fields() == 0) {
398 // The properties must be extended before we can store the value. 398 // The properties must be extended before we can store the value.
399 // We jump to a runtime call that extends the properties array. 399 __ mov(ExtendStorageDescriptor::NameRegister(), Operand(name));
400 __ push(receiver_reg); 400 __ mov(ExtendStorageDescriptor::MapRegister(), Operand(transition));
401 __ mov(r2, Operand(transition)); 401
402 __ Push(r2, r0); 402 ExtendStorageStub stub(isolate(),
403 __ TailCallExternalReference( 403 FieldIndex::ForDescriptor(*transition, descriptor),
404 ExternalReference(IC_Utility(IC::kSharedStoreIC_ExtendStorage), 404 representation);
405 isolate()), 405 GenerateTailCall(masm(), stub.GetCode());
406 3, 1);
407 return; 406 return;
408 } 407 }
409 408
410 // Update the map of the object. 409 // Update the map of the object.
411 __ mov(scratch1, Operand(transition)); 410 __ mov(scratch1, Operand(transition));
412 __ str(scratch1, FieldMemOperand(receiver_reg, HeapObject::kMapOffset)); 411 __ str(scratch1, FieldMemOperand(receiver_reg, HeapObject::kMapOffset));
413 412
414 // Update the write barrier for the map field. 413 // Update the write barrier for the map field.
415 __ RecordWriteField(receiver_reg, HeapObject::kMapOffset, scratch1, scratch2, 414 __ RecordWriteField(receiver_reg, HeapObject::kMapOffset, scratch1, scratch2,
416 kLRHasNotBeenSaved, kDontSaveFPRegs, OMIT_REMEMBERED_SET, 415 kLRHasNotBeenSaved, kDontSaveFPRegs, OMIT_REMEMBERED_SET,
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 // Return the generated code. 830 // Return the generated code.
832 return GetCode(kind(), Code::NORMAL, name); 831 return GetCode(kind(), Code::NORMAL, name);
833 } 832 }
834 833
835 834
836 #undef __ 835 #undef __
837 } 836 }
838 } // namespace v8::internal 837 } // namespace v8::internal
839 838
840 #endif // V8_TARGET_ARCH_ARM 839 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/ic/arm64/handler-compiler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698