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

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: Fixed nit Created 7 years, 5 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/ia32/lithium-codegen-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | 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 // 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 } 344 }
345 345
346 346
347 void LCallNewArray::PrintDataTo(StringStream* stream) { 347 void LCallNewArray::PrintDataTo(StringStream* stream) {
348 stream->Add("= "); 348 stream->Add("= ");
349 context()->PrintTo(stream); 349 context()->PrintTo(stream);
350 stream->Add(" "); 350 stream->Add(" ");
351 constructor()->PrintTo(stream); 351 constructor()->PrintTo(stream);
352 stream->Add(" #%d / ", arity()); 352 stream->Add(" #%d / ", arity());
353 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); 353 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
354 ElementsKind kind = static_cast<ElementsKind>( 354 ElementsKind kind = hydrogen()->elements_kind();
355 Smi::cast(hydrogen()->property_cell()->value())->value());
356 stream->Add(" (%s) ", ElementsKindToString(kind)); 355 stream->Add(" (%s) ", ElementsKindToString(kind));
357 } 356 }
358 357
359 358
360 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 359 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
361 arguments()->PrintTo(stream); 360 arguments()->PrintTo(stream);
362 361
363 stream->Add(" length "); 362 stream->Add(" length ");
364 length()->PrintTo(stream); 363 length()->PrintTo(stream);
365 364
(...skipping 2424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2790 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2789 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2791 LOperand* object = UseRegister(instr->object()); 2790 LOperand* object = UseRegister(instr->object());
2792 LOperand* index = UseTempRegister(instr->index()); 2791 LOperand* index = UseTempRegister(instr->index());
2793 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2792 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2794 } 2793 }
2795 2794
2796 2795
2797 } } // namespace v8::internal 2796 } } // namespace v8::internal
2798 2797
2799 #endif // V8_TARGET_ARCH_IA32 2798 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698