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

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

Issue 24366004: Split HCompareGeneric in a test and a branch part. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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
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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 1046
1047 return result; 1047 return result;
1048 } 1048 }
1049 1049
1050 1050
1051 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { 1051 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) {
1052 return new(zone()) LGoto(instr->FirstSuccessor()); 1052 return new(zone()) LGoto(instr->FirstSuccessor());
1053 } 1053 }
1054 1054
1055 1055
1056 LInstruction* LChunkBuilder::DoAndBranch(HAndBranch* instr) {
1057 return new(zone()) LAndBranch(UseRegister(instr->value()),
1058 instr->op());
1059 }
1060
1061
1056 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { 1062 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) {
1057 HValue* value = instr->value(); 1063 HValue* value = instr->value();
1058 if (value->EmitAtUses()) { 1064 if (value->EmitAtUses()) {
1059 ASSERT(value->IsConstant()); 1065 ASSERT(value->IsConstant());
1060 ASSERT(!value->representation().IsDouble()); 1066 ASSERT(!value->representation().IsDouble());
1061 HBasicBlock* successor = HConstant::cast(value)->BooleanValue() 1067 HBasicBlock* successor = HConstant::cast(value)->BooleanValue()
1062 ? instr->FirstSuccessor() 1068 ? instr->FirstSuccessor()
1063 : instr->SecondSuccessor(); 1069 : instr->SecondSuccessor();
1064 return new(zone()) LGoto(successor); 1070 return new(zone()) LGoto(successor);
1065 } 1071 }
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2725 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2720 LOperand* object = UseRegister(instr->object()); 2726 LOperand* object = UseRegister(instr->object());
2721 LOperand* index = UseTempRegister(instr->index()); 2727 LOperand* index = UseTempRegister(instr->index());
2722 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2728 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2723 } 2729 }
2724 2730
2725 2731
2726 } } // namespace v8::internal 2732 } } // namespace v8::internal
2727 2733
2728 #endif // V8_TARGET_ARCH_IA32 2734 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698