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

Unified Diff: src/objects.cc

Issue 17229005: Convert UnaryOpStub to a HydrogenCodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« src/ic.cc ('K') | « src/ic.cc ('k') | src/type-info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 7f18ae01e23e1e858e74c2108d04ca0563282a51..3f4c74752b6d485c51dd1daf53d4283f17ab95ef 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10572,7 +10572,10 @@ const char* Code::StubType2String(StubType type) {
void Code::PrintExtraICState(FILE* out, Kind kind, ExtraICState extra) {
+ PrintF(out, "extra_ic_state = ");
const char* name = NULL;
+ HeapStringAllocator allocator;
+ StringStream str(&allocator);
switch (kind) {
case CALL_IC:
if (extra == STRING_INDEX_OUT_OF_BOUNDS) {
@@ -10585,13 +10588,19 @@ void Code::PrintExtraICState(FILE* out, Kind kind, ExtraICState extra) {
name = "STRICT";
}
break;
+ case UNARY_OP_IC:
+ UnaryOpStub(extra).PrintName(&str);
+ break;
default:
break;
}
- if (name != NULL) {
- PrintF(out, "extra_ic_state = %s\n", name);
+ if (str.length()) {
+ str.Add("\n");
+ str.OutputToFile(out);
+ } else if (name != NULL) {
+ PrintF(out, "%s\n", name);
} else {
- PrintF(out, "extra_ic_state = %d\n", extra);
+ PrintF(out, "%d\n", extra);
}
}
« src/ic.cc ('K') | « src/ic.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698