Index: src/arm/codegen-arm.cc |
=================================================================== |
--- src/arm/codegen-arm.cc (revision 3439) |
+++ src/arm/codegen-arm.cc (working copy) |
@@ -5680,6 +5680,29 @@ |
} |
+const char* GenericBinaryOpStub::GetName() { |
+ if (name_ != NULL) return name_; |
+ const int len = 100; |
+ name_ = Bootstrapper::AllocateAutoDeletedArray(len); |
+ if (name_ == NULL) return "OOM"; |
+ const char* op_name = Token::Name(op_); |
+ const char* overwrite_name; |
+ switch (mode_) { |
+ case NO_OVERWRITE: overwrite_name = "Alloc"; break; |
+ case OVERWRITE_RIGHT: overwrite_name = "OverwriteRight"; break; |
+ case OVERWRITE_LEFT: overwrite_name = "OverwriteLeft"; break; |
+ default: overwrite_name = "UnknownOverwrite"; break; |
+ } |
+ |
+ OS::SNPrintF(Vector<char>(name_, len), |
+ "GenericBinaryOpStub_%s_%s%s", |
+ op_name, |
+ overwrite_name, |
+ specialized_on_rhs_ ? "_ConstantRhs" : 0); |
+ return name_; |
+} |
+ |
+ |
void GenericBinaryOpStub::Generate(MacroAssembler* masm) { |
// r1 : x |
// r0 : y |