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

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

Issue 14997008: Add a HBreak instruction for debugging (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 stream->Add("B%d", block_id()); 201 stream->Add("B%d", block_id());
202 } 202 }
203 203
204 204
205 void LBranch::PrintDataTo(StringStream* stream) { 205 void LBranch::PrintDataTo(StringStream* stream) {
206 stream->Add("B%d | B%d on ", true_block_id(), false_block_id()); 206 stream->Add("B%d | B%d on ", true_block_id(), false_block_id());
207 value()->PrintTo(stream); 207 value()->PrintTo(stream);
208 } 208 }
209 209
210 210
211 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) {
212 return new(zone()) LDebugBreak();
213 }
214
211 void LCmpIDAndBranch::PrintDataTo(StringStream* stream) { 215 void LCmpIDAndBranch::PrintDataTo(StringStream* stream) {
212 stream->Add("if "); 216 stream->Add("if ");
213 left()->PrintTo(stream); 217 left()->PrintTo(stream);
214 stream->Add(" %s ", Token::String(op())); 218 stream->Add(" %s ", Token::String(op()));
215 right()->PrintTo(stream); 219 right()->PrintTo(stream);
216 stream->Add(" then B%d else B%d", true_block_id(), false_block_id()); 220 stream->Add(" then B%d else B%d", true_block_id(), false_block_id());
217 } 221 }
218 222
219 223
220 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) { 224 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) {
(...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 2483
2480 2484
2481 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2485 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2482 LOperand* object = UseRegister(instr->object()); 2486 LOperand* object = UseRegister(instr->object());
2483 LOperand* index = UseRegister(instr->index()); 2487 LOperand* index = UseRegister(instr->index());
2484 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2488 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2485 } 2489 }
2486 2490
2487 2491
2488 } } // namespace v8::internal 2492 } } // 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