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

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

Issue 17091002: Hydrogen array constructor cleanup and improvements (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 7 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
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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 constructor()->PrintTo(stream); 345 constructor()->PrintTo(stream);
346 stream->Add(" #%d / ", arity()); 346 stream->Add(" #%d / ", arity());
347 } 347 }
348 348
349 349
350 void LCallNewArray::PrintDataTo(StringStream* stream) { 350 void LCallNewArray::PrintDataTo(StringStream* stream) {
351 stream->Add("= "); 351 stream->Add("= ");
352 constructor()->PrintTo(stream); 352 constructor()->PrintTo(stream);
353 stream->Add(" #%d / ", arity()); 353 stream->Add(" #%d / ", arity());
354 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); 354 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
355 ElementsKind kind = static_cast<ElementsKind>( 355 ElementsKind kind = hydrogen()->elements_kind();
356 Smi::cast(hydrogen()->property_cell()->value())->value());
357 stream->Add(" (%s) ", ElementsKindToString(kind)); 356 stream->Add(" (%s) ", ElementsKindToString(kind));
358 } 357 }
359 358
360 359
361 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 360 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
362 arguments()->PrintTo(stream); 361 arguments()->PrintTo(stream);
363 stream->Add(" length "); 362 stream->Add(" length ");
364 length()->PrintTo(stream); 363 length()->PrintTo(stream);
365 stream->Add(" index "); 364 stream->Add(" index ");
366 index()->PrintTo(stream); 365 index()->PrintTo(stream);
(...skipping 2295 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 2661
2663 2662
2664 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2663 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2665 LOperand* object = UseRegister(instr->object()); 2664 LOperand* object = UseRegister(instr->object());
2666 LOperand* index = UseRegister(instr->index()); 2665 LOperand* index = UseRegister(instr->index());
2667 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2666 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2668 } 2667 }
2669 2668
2670 2669
2671 } } // namespace v8::internal 2670 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698