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

Side by Side Diff: src/arm/lithium-arm.cc

Issue 17082003: Let NaN flow as double into HBranch (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 HValue* value = instr->value(); 992 HValue* value = instr->value();
993 if (value->EmitAtUses()) { 993 if (value->EmitAtUses()) {
994 HBasicBlock* successor = HConstant::cast(value)->BooleanValue() 994 HBasicBlock* successor = HConstant::cast(value)->BooleanValue()
995 ? instr->FirstSuccessor() 995 ? instr->FirstSuccessor()
996 : instr->SecondSuccessor(); 996 : instr->SecondSuccessor();
997 return new(zone()) LGoto(successor->block_id()); 997 return new(zone()) LGoto(successor->block_id());
998 } 998 }
999 999
1000 LBranch* result = new(zone()) LBranch(UseRegister(value)); 1000 LBranch* result = new(zone()) LBranch(UseRegister(value));
1001 // Tagged values that are not known smis or booleans require a 1001 // Tagged values that are not known smis or booleans require a
1002 // deoptimization environment. 1002 // deoptimization environment. If the instruction is generic no
1003 // environment is needed since all cases are handled.
1003 Representation rep = value->representation(); 1004 Representation rep = value->representation();
1004 HType type = value->type(); 1005 HType type = value->type();
1005 if (rep.IsTagged() && !type.IsSmi() && !type.IsBoolean()) { 1006 ToBooleanStub::Types expected = instr->expected_input_types();
1007 if (rep.IsTagged() && !type.IsSmi() && !type.IsBoolean() &&
1008 !expected.IsGeneric()) {
1006 return AssignEnvironment(result); 1009 return AssignEnvironment(result);
1007 } 1010 }
1008 return result; 1011 return result;
1009 } 1012 }
1010 1013
1011 1014
1012 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { 1015 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) {
1013 return new(zone()) LDebugBreak(); 1016 return new(zone()) LDebugBreak();
1014 } 1017 }
1015 1018
(...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after
2659 2662
2660 2663
2661 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2664 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2662 LOperand* object = UseRegister(instr->object()); 2665 LOperand* object = UseRegister(instr->object());
2663 LOperand* index = UseRegister(instr->index()); 2666 LOperand* index = UseRegister(instr->index());
2664 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2667 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2665 } 2668 }
2666 2669
2667 2670
2668 } } // namespace v8::internal 2671 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698