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

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

Issue 18191007: MIPS: Hydrogen array constructor cleanup and improvements. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/lithium-codegen-mips.cc ('k') | no next file » | 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 constructor()->PrintTo(stream); 323 constructor()->PrintTo(stream);
324 stream->Add(" #%d / ", arity()); 324 stream->Add(" #%d / ", arity());
325 } 325 }
326 326
327 327
328 void LCallNewArray::PrintDataTo(StringStream* stream) { 328 void LCallNewArray::PrintDataTo(StringStream* stream) {
329 stream->Add("= "); 329 stream->Add("= ");
330 constructor()->PrintTo(stream); 330 constructor()->PrintTo(stream);
331 stream->Add(" #%d / ", arity()); 331 stream->Add(" #%d / ", arity());
332 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); 332 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
333 ElementsKind kind = static_cast<ElementsKind>( 333 ElementsKind kind = hydrogen()->elements_kind();
334 Smi::cast(hydrogen()->property_cell()->value())->value());
335 stream->Add(" (%s) ", ElementsKindToString(kind)); 334 stream->Add(" (%s) ", ElementsKindToString(kind));
336 } 335 }
337 336
338 337
339 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 338 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
340 arguments()->PrintTo(stream); 339 arguments()->PrintTo(stream);
341 stream->Add(" length "); 340 stream->Add(" length ");
342 length()->PrintTo(stream); 341 length()->PrintTo(stream);
343 stream->Add(" index "); 342 stream->Add(" index ");
344 index()->PrintTo(stream); 343 index()->PrintTo(stream);
(...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 2557
2559 2558
2560 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2559 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2561 LOperand* object = UseRegister(instr->object()); 2560 LOperand* object = UseRegister(instr->object());
2562 LOperand* index = UseRegister(instr->index()); 2561 LOperand* index = UseRegister(instr->index());
2563 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2562 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2564 } 2563 }
2565 2564
2566 2565
2567 } } // namespace v8::internal 2566 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698