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

Side by Side Diff: src/x64/lithium-x64.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 | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | 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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 ASSERT(value->IsConstant()); 1007 ASSERT(value->IsConstant());
1008 ASSERT(!value->representation().IsDouble()); 1008 ASSERT(!value->representation().IsDouble());
1009 HBasicBlock* successor = HConstant::cast(value)->BooleanValue() 1009 HBasicBlock* successor = HConstant::cast(value)->BooleanValue()
1010 ? instr->FirstSuccessor() 1010 ? instr->FirstSuccessor()
1011 : instr->SecondSuccessor(); 1011 : instr->SecondSuccessor();
1012 return new(zone()) LGoto(successor->block_id()); 1012 return new(zone()) LGoto(successor->block_id());
1013 } 1013 }
1014 1014
1015 LBranch* result = new(zone()) LBranch(UseRegister(value)); 1015 LBranch* result = new(zone()) LBranch(UseRegister(value));
1016 // Tagged values that are not known smis or booleans require a 1016 // Tagged values that are not known smis or booleans require a
1017 // deoptimization environment. 1017 // deoptimization environment. If the instruction is generic no
1018 // environment is needed since all cases are handled.
1019 ToBooleanStub::Types expected = instr->expected_input_types();
1018 Representation rep = value->representation(); 1020 Representation rep = value->representation();
1019 HType type = value->type(); 1021 HType type = value->type();
1020 if (rep.IsTagged() && !type.IsSmi() && !type.IsBoolean()) { 1022 if (rep.IsTagged() && !type.IsSmi() && !type.IsBoolean() &&
1023 !expected.IsGeneric()) {
1021 return AssignEnvironment(result); 1024 return AssignEnvironment(result);
1022 } 1025 }
1023 return result; 1026 return result;
1024 } 1027 }
1025 1028
1026 1029
1027 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { 1030 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) {
1028 ASSERT(instr->value()->representation().IsTagged()); 1031 ASSERT(instr->value()->representation().IsTagged());
1029 LOperand* value = UseRegisterAtStart(instr->value()); 1032 LOperand* value = UseRegisterAtStart(instr->value());
1030 return new(zone()) LCmpMapAndBranch(value); 1033 return new(zone()) LCmpMapAndBranch(value);
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
2598 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2601 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2599 LOperand* object = UseRegister(instr->object()); 2602 LOperand* object = UseRegister(instr->object());
2600 LOperand* index = UseTempRegister(instr->index()); 2603 LOperand* index = UseTempRegister(instr->index());
2601 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2604 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2602 } 2605 }
2603 2606
2604 2607
2605 } } // namespace v8::internal 2608 } } // namespace v8::internal
2606 2609
2607 #endif // V8_TARGET_ARCH_X64 2610 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698