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

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

Issue 605873005: MIPS: Fix r24286 "ExtendStorageStub added, it is aimed for extending objects backing store when it … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | src/ic/mips64/handler-compiler-mips64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 __ sdc1(f4, FieldMemOperand(storage_reg, HeapNumber::kValueOffset)); 384 __ sdc1(f4, FieldMemOperand(storage_reg, HeapNumber::kValueOffset));
385 } 385 }
386 386
387 // Stub never generated for objects that require access checks. 387 // Stub never generated for objects that require access checks.
388 DCHECK(!transition->is_access_check_needed()); 388 DCHECK(!transition->is_access_check_needed());
389 389
390 // Perform map transition for the receiver if necessary. 390 // Perform map transition for the receiver if necessary.
391 if (details.type() == FIELD && 391 if (details.type() == FIELD &&
392 Map::cast(transition->GetBackPointer())->unused_property_fields() == 0) { 392 Map::cast(transition->GetBackPointer())->unused_property_fields() == 0) {
393 // The properties must be extended before we can store the value. 393 // The properties must be extended before we can store the value.
394 __ mov(ExtendStorageDescriptor::NameRegister(), Operand(name)); 394 __ li(ExtendStorageDescriptor::NameRegister(), Operand(name));
395 __ mov(ExtendStorageDescriptor::MapRegister(), Operand(transition)); 395 __ li(ExtendStorageDescriptor::MapRegister(), Operand(transition));
396 396
397 397
398 ExtendStorageStub stub(isolate(), 398 ExtendStorageStub stub(isolate(),
399 FieldIndex::ForDescriptor(*transition, descriptor), 399 FieldIndex::ForDescriptor(*transition, descriptor),
400 representation); 400 representation);
401 GenerateTailCall(masm(), stub.GetCode()); 401 GenerateTailCall(masm(), stub.GetCode());
402 return; 402 return;
403 } 403 }
404 404
405 // Update the map of the object. 405 // Update the map of the object.
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 // Return the generated code. 831 // Return the generated code.
832 return GetCode(kind(), Code::NORMAL, name); 832 return GetCode(kind(), Code::NORMAL, name);
833 } 833 }
834 834
835 835
836 #undef __ 836 #undef __
837 } 837 }
838 } // namespace v8::internal 838 } // namespace v8::internal
839 839
840 #endif // V8_TARGET_ARCH_MIPS 840 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/ic/mips64/handler-compiler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698