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

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

Issue 295743002: Refactor transitioning stores. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 6 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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/hydrogen-load-elimination.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "double.h" 7 #include "double.h"
8 #include "factory.h" 8 #include "factory.h"
9 #include "hydrogen-infer-representation.h" 9 #include "hydrogen-infer-representation.h"
10 #include "property-details-inl.h" 10 #include "property-details-inl.h"
(...skipping 3571 matching lines...) Expand 10 before | Expand all | Expand 10 after
3582 3582
3583 3583
3584 void HStoreNamedField::PrintDataTo(StringStream* stream) { 3584 void HStoreNamedField::PrintDataTo(StringStream* stream) {
3585 object()->PrintNameTo(stream); 3585 object()->PrintNameTo(stream);
3586 access_.PrintTo(stream); 3586 access_.PrintTo(stream);
3587 stream->Add(" = "); 3587 stream->Add(" = ");
3588 value()->PrintNameTo(stream); 3588 value()->PrintNameTo(stream);
3589 if (NeedsWriteBarrier()) { 3589 if (NeedsWriteBarrier()) {
3590 stream->Add(" (write-barrier)"); 3590 stream->Add(" (write-barrier)");
3591 } 3591 }
3592 if (has_transition()) {
3593 stream->Add(" (transition map %p)", *transition_map());
3594 }
3595 } 3592 }
3596 3593
3597 3594
3598 void HStoreKeyed::PrintDataTo(StringStream* stream) { 3595 void HStoreKeyed::PrintDataTo(StringStream* stream) {
3599 if (!is_external()) { 3596 if (!is_external()) {
3600 elements()->PrintNameTo(stream); 3597 elements()->PrintNameTo(stream);
3601 } else { 3598 } else {
3602 elements()->PrintNameTo(stream); 3599 elements()->PrintNameTo(stream);
3603 stream->Add("."); 3600 stream->Add(".");
3604 stream->Add(ElementsKindToString(elements_kind())); 3601 stream->Add(ElementsKindToString(elements_kind()));
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
4784 break; 4781 break;
4785 case kExternalMemory: 4782 case kExternalMemory:
4786 stream->Add("[external-memory]"); 4783 stream->Add("[external-memory]");
4787 break; 4784 break;
4788 } 4785 }
4789 4786
4790 stream->Add("@%d", offset()); 4787 stream->Add("@%d", offset());
4791 } 4788 }
4792 4789
4793 } } // namespace v8::internal 4790 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/hydrogen-load-elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698