Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 6670796e128912caad70a55499d667bd2b19da70..bf593f7bf0cce9efec0255bc6aeca706fd3466c0 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -312,24 +312,20 @@ void KeyedStoreElementStub::Generate(MacroAssembler* masm) { |
void ArgumentsAccessStub::PrintName(StringStream* stream) { |
- const char* type_name = NULL; // Make g++ happy. |
+ stream->Add("ArgumentsAccessStub_"); |
switch (type_) { |
- case READ_ELEMENT: type_name = "ReadElement"; break; |
- case NEW_NON_STRICT_FAST: type_name = "NewNonStrictFast"; break; |
- case NEW_NON_STRICT_SLOW: type_name = "NewNonStrictSlow"; break; |
- case NEW_STRICT: type_name = "NewStrict"; break; |
+ case READ_ELEMENT: stream->Add("ReadElement"); break; |
+ case NEW_NON_STRICT_FAST: stream->Add("NewNonStrictFast"); break; |
+ case NEW_NON_STRICT_SLOW: stream->Add("NewNonStrictSlow"); break; |
+ case NEW_STRICT: stream->Add("NewStrict"); break; |
} |
- stream->Add("ArgumentsAccessStub_%s", type_name); |
} |
void CallFunctionStub::PrintName(StringStream* stream) { |
- const char* flags_name = NULL; // Make g++ happy. |
- switch (flags_) { |
- case NO_CALL_FUNCTION_FLAGS: flags_name = ""; break; |
- case RECEIVER_MIGHT_BE_IMPLICIT: flags_name = "_Implicit"; break; |
- } |
- stream->Add("CallFunctionStub_Args%d%s", argc_, flags_name); |
+ stream->Add("CallFunctionStub_Args%d", argc_); |
+ if (ReceiverMightBeImplicit()) stream->Add("_Implicit"); |
+ if (RecordCallTarget()) stream->Add("_Recording"); |
} |