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

Side by Side Diff: src/mips/lithium-codegen-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/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('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 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 NegateCondition(cc), src1, src2); 1820 NegateCondition(cc), src1, src2);
1821 } else if (right_block == next_block) { 1821 } else if (right_block == next_block) {
1822 __ BranchF(chunk_->GetAssemblyLabel(left_block), NULL, cc, src1, src2); 1822 __ BranchF(chunk_->GetAssemblyLabel(left_block), NULL, cc, src1, src2);
1823 } else { 1823 } else {
1824 __ BranchF(chunk_->GetAssemblyLabel(left_block), NULL, cc, src1, src2); 1824 __ BranchF(chunk_->GetAssemblyLabel(left_block), NULL, cc, src1, src2);
1825 __ Branch(chunk_->GetAssemblyLabel(right_block)); 1825 __ Branch(chunk_->GetAssemblyLabel(right_block));
1826 } 1826 }
1827 } 1827 }
1828 1828
1829 1829
1830 void LCodeGen::DoDebugBreak(LDebugBreak* instr) {
1831 __ stop("LDebugBreak");
1832 }
1833
1834
1830 void LCodeGen::DoBranch(LBranch* instr) { 1835 void LCodeGen::DoBranch(LBranch* instr) {
1831 int true_block = chunk_->LookupDestination(instr->true_block_id()); 1836 int true_block = chunk_->LookupDestination(instr->true_block_id());
1832 int false_block = chunk_->LookupDestination(instr->false_block_id()); 1837 int false_block = chunk_->LookupDestination(instr->false_block_id());
1833 1838
1834 Representation r = instr->hydrogen()->value()->representation(); 1839 Representation r = instr->hydrogen()->value()->representation();
1835 if (r.IsInteger32()) { 1840 if (r.IsInteger32()) {
1836 Register reg = ToRegister(instr->value()); 1841 Register reg = ToRegister(instr->value());
1837 EmitBranch(true_block, false_block, ne, reg, Operand(zero_reg)); 1842 EmitBranch(true_block, false_block, ne, reg, Operand(zero_reg));
1838 } else if (r.IsDouble()) { 1843 } else if (r.IsDouble()) {
1839 DoubleRegister reg = ToDoubleRegister(instr->value()); 1844 DoubleRegister reg = ToDoubleRegister(instr->value());
(...skipping 3812 matching lines...) Expand 10 before | Expand all | Expand 10 after
5652 __ Subu(scratch, result, scratch); 5657 __ Subu(scratch, result, scratch);
5653 __ lw(result, FieldMemOperand(scratch, 5658 __ lw(result, FieldMemOperand(scratch,
5654 FixedArray::kHeaderSize - kPointerSize)); 5659 FixedArray::kHeaderSize - kPointerSize));
5655 __ bind(&done); 5660 __ bind(&done);
5656 } 5661 }
5657 5662
5658 5663
5659 #undef __ 5664 #undef __
5660 5665
5661 } } // namespace v8::internal 5666 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698