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

Side by Side Diff: src/arm/lithium-arm.cc

Issue 332333002: Version 3.26.31.6 (merged r21509, r21858, r21525) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.26
Patch Set: Created 6 years, 6 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/arm/lithium-codegen-arm.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 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 "v8.h" 5 #include "v8.h"
6 6
7 #include "lithium-allocator-inl.h" 7 #include "lithium-allocator-inl.h"
8 #include "arm/lithium-arm.h" 8 #include "arm/lithium-arm.h"
9 #include "arm/lithium-codegen-arm.h" 9 #include "arm/lithium-codegen-arm.h"
10 #include "hydrogen-osr.h" 10 #include "hydrogen-osr.h"
(...skipping 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 val = UseTempRegister(instr->value()); 2290 val = UseTempRegister(instr->value());
2291 } else if (instr->field_representation().IsDouble()) { 2291 } else if (instr->field_representation().IsDouble()) {
2292 val = UseRegisterAtStart(instr->value()); 2292 val = UseRegisterAtStart(instr->value());
2293 } else { 2293 } else {
2294 val = UseRegister(instr->value()); 2294 val = UseRegister(instr->value());
2295 } 2295 }
2296 2296
2297 // We need a temporary register for write barrier of the map field. 2297 // We need a temporary register for write barrier of the map field.
2298 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; 2298 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL;
2299 2299
2300 LInstruction* result = new(zone()) LStoreNamedField(obj, val, temp); 2300 return new(zone()) LStoreNamedField(obj, val, temp);
2301 if (!instr->access().IsExternalMemory() &&
2302 instr->field_representation().IsHeapObject() &&
2303 !instr->value()->type().IsHeapObject()) {
2304 result = AssignEnvironment(result);
2305 }
2306 return result;
2307 } 2301 }
2308 2302
2309 2303
2310 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 2304 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
2311 LOperand* context = UseFixed(instr->context(), cp); 2305 LOperand* context = UseFixed(instr->context(), cp);
2312 LOperand* obj = UseFixed(instr->object(), r1); 2306 LOperand* obj = UseFixed(instr->object(), r1);
2313 LOperand* val = UseFixed(instr->value(), r0); 2307 LOperand* val = UseFixed(instr->value(), r0);
2314 2308
2315 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); 2309 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val);
2316 return MarkAsCall(result, instr); 2310 return MarkAsCall(result, instr);
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2556 2550
2557 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2551 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2558 LOperand* object = UseRegister(instr->object()); 2552 LOperand* object = UseRegister(instr->object());
2559 LOperand* index = UseTempRegister(instr->index()); 2553 LOperand* index = UseTempRegister(instr->index());
2560 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2554 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2561 LInstruction* result = DefineSameAsFirst(load); 2555 LInstruction* result = DefineSameAsFirst(load);
2562 return AssignPointerMap(result); 2556 return AssignPointerMap(result);
2563 } 2557 }
2564 2558
2565 } } // namespace v8::internal 2559 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698