Index: src/code-stubs.h |
=================================================================== |
--- src/code-stubs.h (revision 8575) |
+++ src/code-stubs.h (working copy) |
@@ -189,7 +189,7 @@ |
// a fixed (non-moveable) code object. |
virtual bool NeedsImmovableCode() { return false; } |
- #ifdef DEBUG |
+#ifdef DEBUG |
virtual void Print() { PrintF("%s\n", GetName()); } |
#endif |
@@ -274,8 +274,6 @@ |
void Generate(MacroAssembler* masm); |
private: |
- const char* GetName() { return "StackCheckStub"; } |
- |
Major MajorKey() { return StackCheck; } |
int MinorKey() { return 0; } |
}; |
@@ -290,7 +288,6 @@ |
private: |
Major MajorKey() { return ToNumber; } |
int MinorKey() { return 0; } |
- const char* GetName() { return "ToNumberStub"; } |
}; |
@@ -302,7 +299,6 @@ |
void Generate(MacroAssembler* masm); |
private: |
- const char* GetName() { return "FastNewClosureStub"; } |
Major MajorKey() { return FastNewClosure; } |
int MinorKey() { return strict_mode_; } |
@@ -323,7 +319,6 @@ |
private: |
int slots_; |
- const char* GetName() { return "FastNewContextStub"; } |
Major MajorKey() { return FastNewContext; } |
int MinorKey() { return slots_; } |
}; |
@@ -352,7 +347,6 @@ |
Mode mode_; |
int length_; |
- const char* GetName() { return "FastCloneShallowArrayStub"; } |
Major MajorKey() { return FastCloneShallowArray; } |
int MinorKey() { |
ASSERT(mode_ == 0 || mode_ == 1); |
@@ -393,7 +387,7 @@ |
return (flags_ & kReturnTrueFalseObject) != 0; |
} |
- const char* GetName(); |
+ virtual const char* GetName(); |
Flags flags_; |
char* name_; |
@@ -408,8 +402,6 @@ |
private: |
virtual CodeStub::Major MajorKey() { return MathPow; } |
virtual int MinorKey() { return 0; } |
- |
- const char* GetName() { return "MathPowStub"; } |
}; |
@@ -544,7 +536,7 @@ |
// Unfortunately you have to run without snapshots to see most of these |
// names in the profile since most compare stubs end up in the snapshot. |
char* name_; |
- const char* GetName(); |
+ virtual const char* GetName(); |
#ifdef DEBUG |
void Print() { |
PrintF("CompareStub (minor %d) (cc %d), (strict %s), " |
@@ -593,8 +585,6 @@ |
int MinorKey(); |
bool NeedsImmovableCode(); |
- |
- const char* GetName() { return "CEntryStub"; } |
}; |
@@ -610,8 +600,6 @@ |
private: |
Major MajorKey() { return JSEntry; } |
int MinorKey() { return 0; } |
- |
- const char* GetName() { return "JSEntryStub"; } |
}; |
@@ -624,7 +612,7 @@ |
private: |
int MinorKey() { return 1; } |
- const char* GetName() { return "JSConstructEntryStub"; } |
+ virtual const char* GetName() { return "JSConstructEntryStub"; } |
}; |
@@ -651,8 +639,6 @@ |
void GenerateNewNonStrictFast(MacroAssembler* masm); |
void GenerateNewNonStrictSlow(MacroAssembler* masm); |
- const char* GetName() { return "ArgumentsAccessStub"; } |
- |
#ifdef DEBUG |
void Print() { |
PrintF("ArgumentsAccessStub (type %d)\n", type_); |
@@ -670,14 +656,6 @@ |
int MinorKey() { return 0; } |
void Generate(MacroAssembler* masm); |
- |
- const char* GetName() { return "RegExpExecStub"; } |
- |
-#ifdef DEBUG |
- void Print() { |
- PrintF("RegExpExecStub\n"); |
- } |
-#endif |
}; |
@@ -690,14 +668,6 @@ |
int MinorKey() { return 0; } |
void Generate(MacroAssembler* masm); |
- |
- const char* GetName() { return "RegExpConstructResultStub"; } |
- |
-#ifdef DEBUG |
- void Print() { |
- PrintF("RegExpConstructResultStub\n"); |
- } |
-#endif |
}; |
@@ -921,13 +891,7 @@ |
DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); |
}; |
-#ifdef DEBUG |
-#define DECLARE_ARRAY_STUB_PRINT(name) void Print() { PrintF(#name); } |
-#else |
-#define DECLARE_ARRAY_STUB_PRINT(name) |
-#endif |
- |
class KeyedLoadFastElementStub : public CodeStub { |
public: |
explicit KeyedLoadFastElementStub() { |
@@ -937,10 +901,6 @@ |
int MinorKey() { return 0; } |
void Generate(MacroAssembler* masm); |
- |
- const char* GetName() { return "KeyedLoadFastElementStub"; } |
- |
- DECLARE_ARRAY_STUB_PRINT(KeyedLoadFastElementStub) |
}; |
@@ -954,10 +914,6 @@ |
void Generate(MacroAssembler* masm); |
- const char* GetName() { return "KeyedStoreFastElementStub"; } |
- |
- DECLARE_ARRAY_STUB_PRINT(KeyedStoreFastElementStub) |
- |
private: |
bool is_js_array_; |
}; |
@@ -973,10 +929,6 @@ |
void Generate(MacroAssembler* masm); |
- const char* GetName() { return "KeyedLoadExternalArrayStub"; } |
- |
- DECLARE_ARRAY_STUB_PRINT(KeyedLoadExternalArrayStub) |
- |
protected: |
JSObject::ElementsKind elements_kind_; |
}; |
@@ -992,10 +944,6 @@ |
void Generate(MacroAssembler* masm); |
- const char* GetName() { return "KeyedStoreExternalArrayStub"; } |
- |
- DECLARE_ARRAY_STUB_PRINT(KeyedStoreExternalArrayStub) |
- |
protected: |
JSObject::ElementsKind elements_kind_; |
}; |