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

Side by Side Diff: src/mips/lithium-mips.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/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 } 1576 }
1586 1577
1587 1578
1588 LInstruction* LChunkBuilder::DoCompareConstantEqAndBranch( 1579 LInstruction* LChunkBuilder::DoCompareConstantEqAndBranch(
1589 HCompareConstantEqAndBranch* instr) { 1580 HCompareConstantEqAndBranch* instr) {
1590 return new(zone()) LCmpConstantEqAndBranch( 1581 return new(zone()) LCmpConstantEqAndBranch(
1591 UseRegisterAtStart(instr->value())); 1582 UseRegisterAtStart(instr->value()));
1592 } 1583 }
1593 1584
1594 1585
1595 LInstruction* LChunkBuilder::DoIsNilAndBranch(HIsNilAndBranch* instr) {
1596 ASSERT(instr->value()->representation().IsTagged());
1597 return new(zone()) LIsNilAndBranch(UseRegisterAtStart(instr->value()));
1598 }
1599
1600
1601 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1586 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1602 ASSERT(instr->value()->representation().IsTagged()); 1587 ASSERT(instr->value()->representation().IsTagged());
1603 LOperand* temp = TempRegister(); 1588 LOperand* temp = TempRegister();
1604 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()), 1589 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()),
1605 temp); 1590 temp);
1606 } 1591 }
1607 1592
1608 1593
1609 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1594 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
1610 ASSERT(instr->value()->representation().IsTagged()); 1595 ASSERT(instr->value()->representation().IsTagged());
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
2494 2479
2495 2480
2496 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2481 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2497 LOperand* object = UseRegister(instr->object()); 2482 LOperand* object = UseRegister(instr->object());
2498 LOperand* index = UseRegister(instr->index()); 2483 LOperand* index = UseRegister(instr->index());
2499 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2484 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2500 } 2485 }
2501 2486
2502 2487
2503 } } // namespace v8::internal 2488 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698