diff options
Diffstat (limited to 'deps/v8/src/arm/code-stubs-arm.h')
-rw-r--r-- | deps/v8/src/arm/code-stubs-arm.h | 57 |
1 files changed, 5 insertions, 52 deletions
diff --git a/deps/v8/src/arm/code-stubs-arm.h b/deps/v8/src/arm/code-stubs-arm.h index 7427351308..557f7e6d41 100644 --- a/deps/v8/src/arm/code-stubs-arm.h +++ b/deps/v8/src/arm/code-stubs-arm.h @@ -65,8 +65,7 @@ class UnaryOpStub: public CodeStub { UnaryOpIC::TypeInfo operand_type = UnaryOpIC::UNINITIALIZED) : op_(op), mode_(mode), - operand_type_(operand_type), - name_(NULL) { + operand_type_(operand_type) { } private: @@ -76,19 +75,7 @@ class UnaryOpStub: public CodeStub { // Operand type information determined at runtime. UnaryOpIC::TypeInfo operand_type_; - char* name_; - - 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 + virtual void PrintName(StringStream* stream); class ModeBits: public BitField<UnaryOverwriteMode, 0, 1> {}; class OpBits: public BitField<Token::Value, 1, 7> {}; @@ -142,8 +129,7 @@ class BinaryOpStub: public CodeStub { : op_(op), mode_(mode), operands_type_(BinaryOpIC::UNINITIALIZED), - result_type_(BinaryOpIC::UNINITIALIZED), - name_(NULL) { + result_type_(BinaryOpIC::UNINITIALIZED) { use_vfp3_ = CpuFeatures::IsSupported(VFP3); ASSERT(OpBits::is_valid(Token::NUM_TOKENS)); } @@ -156,8 +142,7 @@ class BinaryOpStub: public CodeStub { mode_(ModeBits::decode(key)), use_vfp3_(VFP3Bits::decode(key)), operands_type_(operands_type), - result_type_(result_type), - name_(NULL) { } + result_type_(result_type) { } private: enum SmiCodeGenerateHeapNumberResults { @@ -173,20 +158,7 @@ class BinaryOpStub: public CodeStub { BinaryOpIC::TypeInfo operands_type_; BinaryOpIC::TypeInfo result_type_; - char* name_; - - 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 + virtual void PrintName(StringStream* stream); // Minor key encoding in 16 bits RRRTTTVOOOOOOOMM. class ModeBits: public BitField<OverwriteMode, 0, 2> {}; @@ -370,12 +342,6 @@ class WriteInt32ToHeapNumberStub : public CodeStub { } void Generate(MacroAssembler* masm); - - const char* GetName() { return "WriteInt32ToHeapNumberStub"; } - -#ifdef DEBUG - void Print() { PrintF("WriteInt32ToHeapNumberStub\n"); } -#endif }; @@ -402,8 +368,6 @@ class NumberToStringStub: public CodeStub { int MinorKey() { return 0; } void Generate(MacroAssembler* masm); - - const char* GetName() { return "NumberToStringStub"; } }; @@ -421,8 +385,6 @@ class RegExpCEntryStub: public CodeStub { int MinorKey() { return 0; } bool NeedsImmovableCode() { return true; } - - const char* GetName() { return "RegExpCEntryStub"; } }; @@ -443,8 +405,6 @@ class DirectCEntryStub: public CodeStub { int MinorKey() { return 0; } bool NeedsImmovableCode() { return true; } - - const char* GetName() { return "DirectCEntryStub"; } }; @@ -627,13 +587,6 @@ class StringDictionaryLookupStub: public CodeStub { StringDictionary::kHeaderSize + StringDictionary::kElementsStartIndex * kPointerSize; - -#ifdef DEBUG - void Print() { - PrintF("StringDictionaryLookupStub\n"); - } -#endif - Major MajorKey() { return StringDictionaryNegativeLookup; } int MinorKey() { |