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

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

Issue 14284010: Introduce HObjectAccess, which is used by LoadNamedField and StoreNamedField to denote what parts (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use BitField utility instead of C-language bitfield for portion and offset in HObjectAccess. Created 7 years, 7 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-ia32.cc ('k') | src/stub-cache.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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 arguments()->PrintTo(stream); 362 arguments()->PrintTo(stream);
363 stream->Add(" length "); 363 stream->Add(" length ");
364 length()->PrintTo(stream); 364 length()->PrintTo(stream);
365 stream->Add(" index "); 365 stream->Add(" index ");
366 index()->PrintTo(stream); 366 index()->PrintTo(stream);
367 } 367 }
368 368
369 369
370 void LStoreNamedField::PrintDataTo(StringStream* stream) { 370 void LStoreNamedField::PrintDataTo(StringStream* stream) {
371 object()->PrintTo(stream); 371 object()->PrintTo(stream);
372 stream->Add("."); 372 hydrogen()->access().PrintTo(stream);
373 stream->Add(*String::cast(*name())->ToCString());
374 stream->Add(" <- "); 373 stream->Add(" <- ");
375 value()->PrintTo(stream); 374 value()->PrintTo(stream);
376 } 375 }
377 376
378 377
379 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 378 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
380 object()->PrintTo(stream); 379 object()->PrintTo(stream);
381 stream->Add("."); 380 stream->Add(".");
382 stream->Add(*String::cast(*name())->ToCString()); 381 stream->Add(*String::cast(*name())->ToCString());
383 stream->Add(" <- "); 382 stream->Add(" <- ");
(...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 2478
2480 2479
2481 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2480 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2482 LOperand* object = UseRegister(instr->object()); 2481 LOperand* object = UseRegister(instr->object());
2483 LOperand* index = UseRegister(instr->index()); 2482 LOperand* index = UseRegister(instr->index());
2484 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2483 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2485 } 2484 }
2486 2485
2487 2486
2488 } } // namespace v8::internal 2487 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698