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

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

Issue 211063004: ARM64: fix DoDeferredTaggedToI (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « src/arm64/lithium-arm64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm64/lithium-codegen-arm64.cc
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc
index 5b0b018ab9f148a2cdb77768e42d2779525249ef..578ca5fc9b0160a971e30fcdb40257c83a7154f5 100644
--- a/src/arm64/lithium-codegen-arm64.cc
+++ b/src/arm64/lithium-codegen-arm64.cc
@@ -5517,7 +5517,6 @@ void LCodeGen::DoDeferredTaggedToI(LTaggedToI* instr,
if (instr->truncating()) {
Register output = ToRegister(instr->result());
- Register scratch2 = ToRegister(temp2);
Label check_bools;
// If it's not a heap number, jump to undefined check.
@@ -5530,11 +5529,11 @@ void LCodeGen::DoDeferredTaggedToI(LTaggedToI* instr,
__ Bind(&check_bools);
Register true_root = output;
- Register false_root = scratch2;
+ Register false_root = scratch1;
__ LoadTrueFalseRoots(true_root, false_root);
- __ Cmp(scratch1, true_root);
+ __ Cmp(input, true_root);
__ Cset(output, eq);
- __ Ccmp(scratch1, false_root, ZFlag, ne);
+ __ Ccmp(input, false_root, ZFlag, ne);
__ B(eq, &done);
// Output contains zero, undefined is converted to zero for truncating
« no previous file with comments | « src/arm64/lithium-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698