Do not shuffle parameters when doing sub on ia32 and arm.
Review URL: http://codereview.chromium.org/6283012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6458 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
17cb50b926
commit
2a741d4946
@ -1294,8 +1294,8 @@ LInstruction* LChunkBuilder::DoSub(HSub* instr) {
|
||||
if (instr->representation().IsInteger32()) {
|
||||
ASSERT(instr->left()->representation().IsInteger32());
|
||||
ASSERT(instr->right()->representation().IsInteger32());
|
||||
LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand());
|
||||
LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand());
|
||||
LOperand* left = UseRegisterAtStart(instr->left());
|
||||
LOperand* right = UseOrConstantAtStart(instr->right());
|
||||
LSubI* sub = new LSubI(left, right);
|
||||
LInstruction* result = DefineSameAsFirst(sub);
|
||||
if (instr->CheckFlag(HValue::kCanOverflow)) {
|
||||
|
@ -1327,8 +1327,8 @@ LInstruction* LChunkBuilder::DoSub(HSub* instr) {
|
||||
if (instr->representation().IsInteger32()) {
|
||||
ASSERT(instr->left()->representation().IsInteger32());
|
||||
ASSERT(instr->right()->representation().IsInteger32());
|
||||
LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand());
|
||||
LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand());
|
||||
LOperand* left = UseRegisterAtStart(instr->left());
|
||||
LOperand* right = UseOrConstantAtStart(instr->right());
|
||||
LSubI* sub = new LSubI(left, right);
|
||||
LInstruction* result = DefineSameAsFirst(sub);
|
||||
if (instr->CheckFlag(HValue::kCanOverflow)) {
|
||||
|
Loading…
Reference in New Issue
Block a user