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

Side by Side Diff: src/arm/lithium-arm.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 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 986
987 return result; 987 return result;
988 } 988 }
989 989
990 990
991 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { 991 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) {
992 return new(zone()) LGoto(instr->FirstSuccessor()->block_id()); 992 return new(zone()) LGoto(instr->FirstSuccessor()->block_id());
993 } 993 }
994 994
995 995
996 LInstruction* LChunkBuilder::DoAndBranch(HAndBranch* instr) {
997 return new(zone()) LAndBranch(UseRegister(instr->value()),
998 instr->op());
999 }
1000
1001
996 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { 1002 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) {
997 HValue* value = instr->value(); 1003 HValue* value = instr->value();
998 if (value->EmitAtUses()) { 1004 if (value->EmitAtUses()) {
999 HBasicBlock* successor = HConstant::cast(value)->BooleanValue() 1005 HBasicBlock* successor = HConstant::cast(value)->BooleanValue()
1000 ? instr->FirstSuccessor() 1006 ? instr->FirstSuccessor()
1001 : instr->SecondSuccessor(); 1007 : instr->SecondSuccessor();
1002 return new(zone()) LGoto(successor->block_id()); 1008 return new(zone()) LGoto(successor->block_id());
1003 } 1009 }
1004 1010
1005 LBranch* result = new(zone()) LBranch(UseRegister(value)); 1011 LBranch* result = new(zone()) LBranch(UseRegister(value));
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 2607
2602 2608
2603 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2609 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2604 LOperand* object = UseRegister(instr->object()); 2610 LOperand* object = UseRegister(instr->object());
2605 LOperand* index = UseRegister(instr->index()); 2611 LOperand* index = UseRegister(instr->index());
2606 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2612 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2607 } 2613 }
2608 2614
2609 2615
2610 } } // namespace v8::internal 2616 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | src/hydrogen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698