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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 239923004: Allow merging of monomorphic accesses to tracked fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 8 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/hydrogen-instructions.h ('k') | test/mjsunit/field-type-tracking.js » ('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 3364 matching lines...) Expand 10 before | Expand all | Expand 10 after
3375 3375
3376 void HParameter::PrintDataTo(StringStream* stream) { 3376 void HParameter::PrintDataTo(StringStream* stream) {
3377 stream->Add("%u", index()); 3377 stream->Add("%u", index());
3378 } 3378 }
3379 3379
3380 3380
3381 void HLoadNamedField::PrintDataTo(StringStream* stream) { 3381 void HLoadNamedField::PrintDataTo(StringStream* stream) {
3382 object()->PrintNameTo(stream); 3382 object()->PrintNameTo(stream);
3383 access_.PrintTo(stream); 3383 access_.PrintTo(stream);
3384 3384
3385 if (!map().IsNull()) { 3385 if (map_set_.size() != 0) {
3386 stream->Add(" (%p)", *map().handle()); 3386 stream->Add(" [%p", *map_set_.at(0).handle());
3387 for (int i = 1; i < map_set_.size(); ++i) {
3388 stream->Add(",%p", *map_set_.at(i).handle());
3389 }
3390 stream->Add("]");
3387 } 3391 }
3388 3392
3389 if (HasDependency()) { 3393 if (HasDependency()) {
3390 stream->Add(" "); 3394 stream->Add(" ");
3391 dependency()->PrintNameTo(stream); 3395 dependency()->PrintNameTo(stream);
3392 } 3396 }
3393 } 3397 }
3394 3398
3395 3399
3396 HCheckMaps* HCheckMaps::New(Zone* zone, 3400 HCheckMaps* HCheckMaps::New(Zone* zone,
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
4718 break; 4722 break;
4719 case kExternalMemory: 4723 case kExternalMemory:
4720 stream->Add("[external-memory]"); 4724 stream->Add("[external-memory]");
4721 break; 4725 break;
4722 } 4726 }
4723 4727
4724 stream->Add("@%d", offset()); 4728 stream->Add("@%d", offset());
4725 } 4729 }
4726 4730
4727 } } // namespace v8::internal 4731 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | test/mjsunit/field-type-tracking.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698