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

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

Issue 23693006: Use Unique<Map> in HTransitionElementsKind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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') | src/ia32/lithium-codegen-ia32.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 3115 matching lines...) Expand 10 before | Expand all | Expand 10 after
3126 object()->PrintNameTo(stream); 3126 object()->PrintNameTo(stream);
3127 stream->Add("["); 3127 stream->Add("[");
3128 key()->PrintNameTo(stream); 3128 key()->PrintNameTo(stream);
3129 stream->Add("] = "); 3129 stream->Add("] = ");
3130 value()->PrintNameTo(stream); 3130 value()->PrintNameTo(stream);
3131 } 3131 }
3132 3132
3133 3133
3134 void HTransitionElementsKind::PrintDataTo(StringStream* stream) { 3134 void HTransitionElementsKind::PrintDataTo(StringStream* stream) {
3135 object()->PrintNameTo(stream); 3135 object()->PrintNameTo(stream);
3136 ElementsKind from_kind = original_map()->elements_kind(); 3136 ElementsKind from_kind = original_map().handle()->elements_kind();
3137 ElementsKind to_kind = transitioned_map()->elements_kind(); 3137 ElementsKind to_kind = transitioned_map().handle()->elements_kind();
3138 stream->Add(" %p [%s] -> %p [%s]", 3138 stream->Add(" %p [%s] -> %p [%s]",
3139 *original_map(), 3139 *original_map().handle(),
3140 ElementsAccessor::ForKind(from_kind)->name(), 3140 ElementsAccessor::ForKind(from_kind)->name(),
3141 *transitioned_map(), 3141 *transitioned_map().handle(),
3142 ElementsAccessor::ForKind(to_kind)->name()); 3142 ElementsAccessor::ForKind(to_kind)->name());
3143 if (IsSimpleMapChangeTransition(from_kind, to_kind)) stream->Add(" (simple)"); 3143 if (IsSimpleMapChangeTransition(from_kind, to_kind)) stream->Add(" (simple)");
3144 } 3144 }
3145 3145
3146 3146
3147 void HLoadGlobalCell::PrintDataTo(StringStream* stream) { 3147 void HLoadGlobalCell::PrintDataTo(StringStream* stream) {
3148 stream->Add("[%p]", *cell()); 3148 stream->Add("[%p]", *cell());
3149 if (!details_.IsDontDelete()) stream->Add(" (deleteable)"); 3149 if (!details_.IsDontDelete()) stream->Add(" (deleteable)");
3150 if (details_.IsReadOnly()) stream->Add(" (read-only)"); 3150 if (details_.IsReadOnly()) stream->Add(" (read-only)");
3151 } 3151 }
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
4223 break; 4223 break;
4224 case kExternalMemory: 4224 case kExternalMemory:
4225 stream->Add("[external-memory]"); 4225 stream->Add("[external-memory]");
4226 break; 4226 break;
4227 } 4227 }
4228 4228
4229 stream->Add("@%d", offset()); 4229 stream->Add("@%d", offset());
4230 } 4230 }
4231 4231
4232 } } // namespace v8::internal 4232 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698