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

Unified Diff: src/arm/lithium-codegen-arm.cc

Issue 7206023: Fix DoHasInstanceType on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Better fix that actually fixes the problem. Created 9 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/lithium-codegen-arm.cc
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
index d244dc7c31ed1b583148ad90b9805d4d826e4e98..e89413a305190b9e2ef6ee62e8bc97a6d82971d6 100644
--- a/src/arm/lithium-codegen-arm.cc
+++ b/src/arm/lithium-codegen-arm.cc
@@ -1955,8 +1955,11 @@ void LCodeGen::DoHasInstanceType(LHasInstanceType* instr) {
ASSERT(instr->hydrogen()->value()->representation().IsTagged());
Label done;
+ // TODO(jkummerow): Would like to replace this by JumpIfSmi(), but it's
+ // non-trivial.
+ __ tst(input, Operand(kSmiTagMask));
Do not use this email for V8 2011/06/20 12:41:46 The comment isn't necessary, or it could just say
Søren Thygesen Gjesse 2011/06/21 10:03:02 Can't we just have a macro assembler instruction T
__ LoadRoot(result, Heap::kFalseValueRootIndex, eq);
- __ JumpIfSmi(input, &done);
+ __ b(eq, &done);
__ CompareObjectType(input, result, result, TestType(instr->hydrogen()));
Condition cond = BranchCondition(instr->hydrogen());
__ LoadRoot(result, Heap::kTrueValueRootIndex, cond);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698