Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: src/codegen-arm.cc

Issue 6341: Improve the generated code for the instanceof operator. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/codegen-arm.cc
===================================================================
--- src/codegen-arm.cc (revision 469)
+++ src/codegen-arm.cc (working copy)
@@ -887,8 +887,6 @@
Major MajorKey() { return GetProperty; }
int MinorKey() { return 0; }
void Generate(MacroAssembler* masm);
-
- const char* GetName() { return "GetPropertyStub"; }
};
@@ -900,8 +898,6 @@
Major MajorKey() { return SetProperty; }
int MinorKey() { return 0; }
void Generate(MacroAssembler* masm);
-
- const char* GetName() { return "GetPropertyStub"; }
};
@@ -951,8 +947,6 @@
int MinorKey() { return (argc_ << 3) | static_cast<int>(kind_); }
void Generate(MacroAssembler* masm);
- const char* GetName() { return "InvokeBuiltinStub"; }
-
#ifdef DEBUG
void Print() {
PrintF("InvokeBuiltinStub (kind %d, argc, %d)\n",
@@ -1294,8 +1288,6 @@
private:
int argc_;
- const char* GetName() { return "CallFuntionStub"; }
-
#if defined(DEBUG)
void Print() { PrintF("CallFunctionStub (argc %d)\n", argc_); }
#endif // defined(DEBUG)
@@ -3386,7 +3378,8 @@
case Token::INSTANCEOF:
__ mov(r0, Operand(1)); // not counting receiver
__ InvokeBuiltin(Builtins::INSTANCE_OF, CALL_JS);
- __ push(r0);
+ __ tst(r0, Operand(r0));
+ cc_reg_ = eq;
break;
default:
« no previous file with comments | « src/code-stubs.cc ('k') | src/codegen-ia32.cc » ('j') | src/macro-assembler-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698