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

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

Issue 295913009: Allow specifying base offset when constructing Keyed hydrogen instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove more unnecessary code Created 6 years, 7 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/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 "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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 stream->Add(" <- "); 330 stream->Add(" <- ");
331 value()->PrintTo(stream); 331 value()->PrintTo(stream);
332 } 332 }
333 333
334 334
335 void LLoadKeyed::PrintDataTo(StringStream* stream) { 335 void LLoadKeyed::PrintDataTo(StringStream* stream) {
336 elements()->PrintTo(stream); 336 elements()->PrintTo(stream);
337 stream->Add("["); 337 stream->Add("[");
338 key()->PrintTo(stream); 338 key()->PrintTo(stream);
339 if (hydrogen()->IsDehoisted()) { 339 if (hydrogen()->IsDehoisted()) {
340 stream->Add(" + %d]", additional_index()); 340 stream->Add(" + %d]", base_offset());
341 } else { 341 } else {
342 stream->Add("]"); 342 stream->Add("]");
343 } 343 }
344 } 344 }
345 345
346 346
347 void LStoreKeyed::PrintDataTo(StringStream* stream) { 347 void LStoreKeyed::PrintDataTo(StringStream* stream) {
348 elements()->PrintTo(stream); 348 elements()->PrintTo(stream);
349 stream->Add("["); 349 stream->Add("[");
350 key()->PrintTo(stream); 350 key()->PrintTo(stream);
351 if (hydrogen()->IsDehoisted()) { 351 if (hydrogen()->IsDehoisted()) {
352 stream->Add(" + %d] <-", additional_index()); 352 stream->Add(" + %d] <-", base_offset());
353 } else { 353 } else {
354 stream->Add("] <- "); 354 stream->Add("] <- ");
355 } 355 }
356 356
357 if (value() == NULL) { 357 if (value() == NULL) {
358 ASSERT(hydrogen()->IsConstantHoleStore() && 358 ASSERT(hydrogen()->IsConstantHoleStore() &&
359 hydrogen()->value()->representation().IsDouble()); 359 hydrogen()->value()->representation().IsDouble());
360 stream->Add("<the hole(nan)>"); 360 stream->Add("<the hole(nan)>");
361 } else { 361 } else {
362 value()->PrintTo(stream); 362 value()->PrintTo(stream);
(...skipping 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2564 2564
2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2566 LOperand* object = UseRegister(instr->object()); 2566 LOperand* object = UseRegister(instr->object());
2567 LOperand* index = UseTempRegister(instr->index()); 2567 LOperand* index = UseTempRegister(instr->index());
2568 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2568 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2569 LInstruction* result = DefineSameAsFirst(load); 2569 LInstruction* result = DefineSameAsFirst(load);
2570 return AssignPointerMap(result); 2570 return AssignPointerMap(result);
2571 } 2571 }
2572 2572
2573 } } // namespace v8::internal 2573 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698