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

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

Issue 57123002: Reland 21774: Generate KeyedLoadGeneric with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Turn off by default Created 7 years 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 stream->Add(" <- "); 363 stream->Add(" <- ");
364 value()->PrintTo(stream); 364 value()->PrintTo(stream);
365 } 365 }
366 366
367 367
368 void LLoadKeyed::PrintDataTo(StringStream* stream) { 368 void LLoadKeyed::PrintDataTo(StringStream* stream) {
369 elements()->PrintTo(stream); 369 elements()->PrintTo(stream);
370 stream->Add("["); 370 stream->Add("[");
371 key()->PrintTo(stream); 371 key()->PrintTo(stream);
372 if (hydrogen()->IsDehoisted()) { 372 if (hydrogen()->IsDehoisted()) {
373 stream->Add(" + %d]", additional_index()); 373 stream->Add(" + %d]", base_offset());
374 } else { 374 } else {
375 stream->Add("]"); 375 stream->Add("]");
376 } 376 }
377 } 377 }
378 378
379 379
380 void LStoreKeyed::PrintDataTo(StringStream* stream) { 380 void LStoreKeyed::PrintDataTo(StringStream* stream) {
381 elements()->PrintTo(stream); 381 elements()->PrintTo(stream);
382 stream->Add("["); 382 stream->Add("[");
383 key()->PrintTo(stream); 383 key()->PrintTo(stream);
384 if (hydrogen()->IsDehoisted()) { 384 if (hydrogen()->IsDehoisted()) {
385 stream->Add(" + %d] <-", additional_index()); 385 stream->Add(" + %d] <-", base_offset());
386 } else { 386 } else {
387 stream->Add("] <- "); 387 stream->Add("] <- ");
388 } 388 }
389 389
390 if (value() == NULL) { 390 if (value() == NULL) {
391 ASSERT(hydrogen()->IsConstantHoleStore() && 391 ASSERT(hydrogen()->IsConstantHoleStore() &&
392 hydrogen()->value()->representation().IsDouble()); 392 hydrogen()->value()->representation().IsDouble());
393 stream->Add("<the hole(nan)>"); 393 stream->Add("<the hole(nan)>");
394 } else { 394 } else {
395 value()->PrintTo(stream); 395 value()->PrintTo(stream);
(...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 2671
2672 2672
2673 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2673 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2674 LOperand* object = UseRegister(instr->object()); 2674 LOperand* object = UseRegister(instr->object());
2675 LOperand* index = UseRegister(instr->index()); 2675 LOperand* index = UseRegister(instr->index());
2676 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2676 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2677 } 2677 }
2678 2678
2679 2679
2680 } } // namespace v8::internal 2680 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698