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

Side by Side Diff: src/ia32/lithium-ia32.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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 369 }
370 370
371 371
372 void LCallNewArray::PrintDataTo(StringStream* stream) { 372 void LCallNewArray::PrintDataTo(StringStream* stream) {
373 stream->Add("= "); 373 stream->Add("= ");
374 context()->PrintTo(stream); 374 context()->PrintTo(stream);
375 stream->Add(" "); 375 stream->Add(" ");
376 constructor()->PrintTo(stream); 376 constructor()->PrintTo(stream);
377 stream->Add(" #%d / ", arity()); 377 stream->Add(" #%d / ", arity());
378 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); 378 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
379 ElementsKind kind = static_cast<ElementsKind>( 379 ElementsKind kind = hydrogen()->elements_kind();
380 Smi::cast(hydrogen()->property_cell()->value())->value());
381 stream->Add(" (%s) ", ElementsKindToString(kind)); 380 stream->Add(" (%s) ", ElementsKindToString(kind));
382 } 381 }
383 382
384 383
385 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 384 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
386 arguments()->PrintTo(stream); 385 arguments()->PrintTo(stream);
387 386
388 stream->Add(" length "); 387 stream->Add(" length ");
389 length()->PrintTo(stream); 388 length()->PrintTo(stream);
390 389
(...skipping 2422 matching lines...) Expand 10 before | Expand all | Expand 10 after
2813 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2812 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2814 LOperand* object = UseRegister(instr->object()); 2813 LOperand* object = UseRegister(instr->object());
2815 LOperand* index = UseTempRegister(instr->index()); 2814 LOperand* index = UseTempRegister(instr->index());
2816 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2815 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2817 } 2816 }
2818 2817
2819 2818
2820 } } // namespace v8::internal 2819 } } // namespace v8::internal
2821 2820
2822 #endif // V8_TARGET_ARCH_IA32 2821 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698