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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/code-stubs-hydrogen.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 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2604 2603
2605 2604
2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2605 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2607 LOperand* object = UseRegister(instr->object()); 2606 LOperand* object = UseRegister(instr->object());
2608 LOperand* index = UseRegister(instr->index()); 2607 LOperand* index = UseRegister(instr->index());
2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2608 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2610 } 2609 }
2611 2610
2612 2611
2613 } } // namespace v8::internal 2612 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698