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

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

Issue 14971005: Remove HIsNilAndBranch (it's now unused) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/arm/lithium-arm.h ('k') | 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 void LCmpIDAndBranch::PrintDataTo(StringStream* stream) { 211 void LCmpIDAndBranch::PrintDataTo(StringStream* stream) {
212 stream->Add("if "); 212 stream->Add("if ");
213 left()->PrintTo(stream); 213 left()->PrintTo(stream);
214 stream->Add(" %s ", Token::String(op())); 214 stream->Add(" %s ", Token::String(op()));
215 right()->PrintTo(stream); 215 right()->PrintTo(stream);
216 stream->Add(" then B%d else B%d", true_block_id(), false_block_id()); 216 stream->Add(" then B%d else B%d", true_block_id(), false_block_id());
217 } 217 }
218 218
219 219
220 void LIsNilAndBranch::PrintDataTo(StringStream* stream) {
221 stream->Add("if ");
222 value()->PrintTo(stream);
223 stream->Add(kind() == kStrictEquality ? " === " : " == ");
224 stream->Add(nil() == kNullValue ? "null" : "undefined");
225 stream->Add(" then B%d else B%d", true_block_id(), false_block_id());
226 }
227
228
229 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) { 220 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) {
230 stream->Add("if is_object("); 221 stream->Add("if is_object(");
231 value()->PrintTo(stream); 222 value()->PrintTo(stream);
232 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); 223 stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
233 } 224 }
234 225
235 226
236 void LIsStringAndBranch::PrintDataTo(StringStream* stream) { 227 void LIsStringAndBranch::PrintDataTo(StringStream* stream) {
237 stream->Add("if is_string("); 228 stream->Add("if is_string(");
238 value()->PrintTo(stream); 229 value()->PrintTo(stream);
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 } 1703 }
1713 1704
1714 1705
1715 LInstruction* LChunkBuilder::DoCompareConstantEqAndBranch( 1706 LInstruction* LChunkBuilder::DoCompareConstantEqAndBranch(
1716 HCompareConstantEqAndBranch* instr) { 1707 HCompareConstantEqAndBranch* instr) {
1717 LOperand* value = UseRegisterAtStart(instr->value()); 1708 LOperand* value = UseRegisterAtStart(instr->value());
1718 return new(zone()) LCmpConstantEqAndBranch(value); 1709 return new(zone()) LCmpConstantEqAndBranch(value);
1719 } 1710 }
1720 1711
1721 1712
1722 LInstruction* LChunkBuilder::DoIsNilAndBranch(HIsNilAndBranch* instr) {
1723 ASSERT(instr->value()->representation().IsTagged());
1724 return new(zone()) LIsNilAndBranch(UseRegisterAtStart(instr->value()));
1725 }
1726
1727
1728 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1713 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1729 ASSERT(instr->value()->representation().IsTagged()); 1714 ASSERT(instr->value()->representation().IsTagged());
1730 LOperand* value = UseRegisterAtStart(instr->value()); 1715 LOperand* value = UseRegisterAtStart(instr->value());
1731 LOperand* temp = TempRegister(); 1716 LOperand* temp = TempRegister();
1732 return new(zone()) LIsObjectAndBranch(value, temp); 1717 return new(zone()) LIsObjectAndBranch(value, temp);
1733 } 1718 }
1734 1719
1735 1720
1736 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1721 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
1737 ASSERT(instr->value()->representation().IsTagged()); 1722 ASSERT(instr->value()->representation().IsTagged());
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
2619 2604
2620 2605
2621 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2622 LOperand* object = UseRegister(instr->object()); 2607 LOperand* object = UseRegister(instr->object());
2623 LOperand* index = UseRegister(instr->index()); 2608 LOperand* index = UseRegister(instr->index());
2624 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2625 } 2610 }
2626 2611
2627 2612
2628 } } // namespace v8::internal 2613 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698