Revision: 20272
Author: [email protected]
Date: Wed Mar 26 10:36:52 2014 UTC
Log: ARM64: fix DoDeferredTaggedToI
BUG=
[email protected]
Review URL: https://codereview.chromium.org/211063004
http://code.google.com/p/v8/source/detail?r=20272
Modified:
/branches/bleeding_edge/src/arm64/lithium-arm64.cc
/branches/bleeding_edge/src/arm64/lithium-codegen-arm64.cc
=======================================
--- /branches/bleeding_edge/src/arm64/lithium-arm64.cc Wed Mar 26 10:11:01
2014 UTC
+++ /branches/bleeding_edge/src/arm64/lithium-arm64.cc Wed Mar 26 10:36:52
2014 UTC
@@ -1106,8 +1106,7 @@
} else {
LOperand* value = UseRegister(instr->value());
LOperand* temp1 = TempRegister();
- LOperand* temp2 =
- instr->CanTruncateToInt32() ? TempRegister() : FixedTemp(d24);
+ LOperand* temp2 = instr->CanTruncateToInt32() ? NULL :
FixedTemp(d24);
res = DefineAsRegister(new(zone()) LTaggedToI(value, temp1,
temp2));
res = AssignEnvironment(res);
}
=======================================
--- /branches/bleeding_edge/src/arm64/lithium-codegen-arm64.cc Wed Mar 26
10:11:01 2014 UTC
+++ /branches/bleeding_edge/src/arm64/lithium-codegen-arm64.cc Wed Mar 26
10:36:52 2014 UTC
@@ -5522,7 +5522,6 @@
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.
@@ -5535,11 +5534,11 @@
__ 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
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.