Index: src/mips/code-stubs-mips.h |
=================================================================== |
--- src/mips/code-stubs-mips.h (revision 8622) |
+++ src/mips/code-stubs-mips.h (working copy) |
@@ -66,8 +66,7 @@ |
UnaryOpIC::TypeInfo operand_type = UnaryOpIC::UNINITIALIZED) |
: op_(op), |
mode_(mode), |
- operand_type_(operand_type), |
- name_(NULL) { |
+ operand_type_(operand_type) { |
} |
private: |
@@ -77,20 +76,8 @@ |
// Operand type information determined at runtime. |
UnaryOpIC::TypeInfo operand_type_; |
- char* name_; |
+ virtual void PrintName(StringStream* stream); |
- virtual const char* GetName(); |
- |
-#ifdef DEBUG |
- void Print() { |
- PrintF("UnaryOpStub %d (op %s), (mode %d, runtime_type_info %s)\n", |
- MinorKey(), |
- Token::String(op_), |
- static_cast<int>(mode_), |
- UnaryOpIC::GetName(operand_type_)); |
- } |
-#endif |
- |
class ModeBits: public BitField<UnaryOverwriteMode, 0, 1> {}; |
class OpBits: public BitField<Token::Value, 1, 7> {}; |
class OperandTypeInfoBits: public BitField<UnaryOpIC::TypeInfo, 8, 3> {}; |
@@ -143,8 +130,7 @@ |
: op_(op), |
mode_(mode), |
operands_type_(BinaryOpIC::UNINITIALIZED), |
- result_type_(BinaryOpIC::UNINITIALIZED), |
- name_(NULL) { |
+ result_type_(BinaryOpIC::UNINITIALIZED) { |
use_fpu_ = CpuFeatures::IsSupported(FPU); |
ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); |
} |
@@ -157,8 +143,7 @@ |
mode_(ModeBits::decode(key)), |
use_fpu_(FPUBits::decode(key)), |
operands_type_(operands_type), |
- result_type_(result_type), |
- name_(NULL) { } |
+ result_type_(result_type) { } |
private: |
enum SmiCodeGenerateHeapNumberResults { |
@@ -174,21 +159,8 @@ |
BinaryOpIC::TypeInfo operands_type_; |
BinaryOpIC::TypeInfo result_type_; |
- char* name_; |
+ virtual void PrintName(StringStream* stream); |
- virtual const char* GetName(); |
- |
-#ifdef DEBUG |
- void Print() { |
- PrintF("BinaryOpStub %d (op %s), " |
- "(mode %d, runtime_type_info %s)\n", |
- MinorKey(), |
- Token::String(op_), |
- static_cast<int>(mode_), |
- BinaryOpIC::GetName(operands_type_)); |
- } |
-#endif |
- |
// Minor key encoding in 16 bits RRRTTTVOOOOOOOMM. |
class ModeBits: public BitField<OverwriteMode, 0, 2> {}; |
class OpBits: public BitField<Token::Value, 2, 7> {}; |