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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.h ('k') | no next file » | 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 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "x64/lithium-x64.h" 10 #include "x64/lithium-x64.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 stream->Add(" <- "); 364 stream->Add(" <- ");
365 value()->PrintTo(stream); 365 value()->PrintTo(stream);
366 } 366 }
367 367
368 368
369 void LLoadKeyed::PrintDataTo(StringStream* stream) { 369 void LLoadKeyed::PrintDataTo(StringStream* stream) {
370 elements()->PrintTo(stream); 370 elements()->PrintTo(stream);
371 stream->Add("["); 371 stream->Add("[");
372 key()->PrintTo(stream); 372 key()->PrintTo(stream);
373 if (hydrogen()->IsDehoisted()) { 373 if (hydrogen()->IsDehoisted()) {
374 stream->Add(" + %d]", additional_index()); 374 stream->Add(" + %d]", base_offset());
375 } else { 375 } else {
376 stream->Add("]"); 376 stream->Add("]");
377 } 377 }
378 } 378 }
379 379
380 380
381 void LStoreKeyed::PrintDataTo(StringStream* stream) { 381 void LStoreKeyed::PrintDataTo(StringStream* stream) {
382 elements()->PrintTo(stream); 382 elements()->PrintTo(stream);
383 stream->Add("["); 383 stream->Add("[");
384 key()->PrintTo(stream); 384 key()->PrintTo(stream);
385 if (hydrogen()->IsDehoisted()) { 385 if (hydrogen()->IsDehoisted()) {
386 stream->Add(" + %d] <-", additional_index()); 386 stream->Add(" + %d] <-", base_offset());
387 } else { 387 } else {
388 stream->Add("] <- "); 388 stream->Add("] <- ");
389 } 389 }
390 390
391 if (value() == NULL) { 391 if (value() == NULL) {
392 ASSERT(hydrogen()->IsConstantHoleStore() && 392 ASSERT(hydrogen()->IsConstantHoleStore() &&
393 hydrogen()->value()->representation().IsDouble()); 393 hydrogen()->value()->representation().IsDouble());
394 stream->Add("<the hole(nan)>"); 394 stream->Add("<the hole(nan)>");
395 } else { 395 } else {
396 value()->PrintTo(stream); 396 value()->PrintTo(stream);
(...skipping 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2593 LOperand* index = UseTempRegister(instr->index()); 2593 LOperand* index = UseTempRegister(instr->index());
2594 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2594 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2595 LInstruction* result = DefineSameAsFirst(load); 2595 LInstruction* result = DefineSameAsFirst(load);
2596 return AssignPointerMap(result); 2596 return AssignPointerMap(result);
2597 } 2597 }
2598 2598
2599 2599
2600 } } // namespace v8::internal 2600 } } // namespace v8::internal
2601 2601
2602 #endif // V8_TARGET_ARCH_X64 2602 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698