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

Side by Side Diff: src/x64/lithium-x64.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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 constructor()->PrintTo(stream); 347 constructor()->PrintTo(stream);
348 stream->Add(" #%d / ", arity()); 348 stream->Add(" #%d / ", arity());
349 } 349 }
350 350
351 351
352 void LCallNewArray::PrintDataTo(StringStream* stream) { 352 void LCallNewArray::PrintDataTo(StringStream* stream) {
353 stream->Add("= "); 353 stream->Add("= ");
354 constructor()->PrintTo(stream); 354 constructor()->PrintTo(stream);
355 stream->Add(" #%d / ", arity()); 355 stream->Add(" #%d / ", arity());
356 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); 356 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
357 ElementsKind kind = static_cast<ElementsKind>( 357 ElementsKind kind = hydrogen()->elements_kind();
358 Smi::cast(hydrogen()->property_cell()->value())->value());
359 stream->Add(" (%s) ", ElementsKindToString(kind)); 358 stream->Add(" (%s) ", ElementsKindToString(kind));
360 } 359 }
361 360
362 361
363 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 362 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
364 arguments()->PrintTo(stream); 363 arguments()->PrintTo(stream);
365 364
366 stream->Add(" length "); 365 stream->Add(" length ");
367 length()->PrintTo(stream); 366 length()->PrintTo(stream);
368 367
(...skipping 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after
2600 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2599 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2601 LOperand* object = UseRegister(instr->object()); 2600 LOperand* object = UseRegister(instr->object());
2602 LOperand* index = UseTempRegister(instr->index()); 2601 LOperand* index = UseTempRegister(instr->index());
2603 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2602 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2604 } 2603 }
2605 2604
2606 2605
2607 } } // namespace v8::internal 2606 } } // namespace v8::internal
2608 2607
2609 #endif // V8_TARGET_ARCH_X64 2608 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698