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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.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 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 __ b(NegateCondition(cc), chunk_->GetAssemblyLabel(right_block)); 2191 __ b(NegateCondition(cc), chunk_->GetAssemblyLabel(right_block));
2192 } else if (right_block == next_block) { 2192 } else if (right_block == next_block) {
2193 __ b(cc, chunk_->GetAssemblyLabel(left_block)); 2193 __ b(cc, chunk_->GetAssemblyLabel(left_block));
2194 } else { 2194 } else {
2195 __ b(cc, chunk_->GetAssemblyLabel(left_block)); 2195 __ b(cc, chunk_->GetAssemblyLabel(left_block));
2196 __ b(chunk_->GetAssemblyLabel(right_block)); 2196 __ b(chunk_->GetAssemblyLabel(right_block));
2197 } 2197 }
2198 } 2198 }
2199 2199
2200 2200
2201 void LCodeGen::DoDebugBreak(LDebugBreak* instr) {
2202 __ stop("LBreak");
2203 }
2204
2205
2201 void LCodeGen::DoBranch(LBranch* instr) { 2206 void LCodeGen::DoBranch(LBranch* instr) {
2202 int true_block = chunk_->LookupDestination(instr->true_block_id()); 2207 int true_block = chunk_->LookupDestination(instr->true_block_id());
2203 int false_block = chunk_->LookupDestination(instr->false_block_id()); 2208 int false_block = chunk_->LookupDestination(instr->false_block_id());
2204 2209
2205 Representation r = instr->hydrogen()->value()->representation(); 2210 Representation r = instr->hydrogen()->value()->representation();
2206 if (r.IsInteger32()) { 2211 if (r.IsInteger32()) {
2207 Register reg = ToRegister(instr->value()); 2212 Register reg = ToRegister(instr->value());
2208 __ cmp(reg, Operand::Zero()); 2213 __ cmp(reg, Operand::Zero());
2209 EmitBranch(true_block, false_block, ne); 2214 EmitBranch(true_block, false_block, ne);
2210 } else if (r.IsDouble()) { 2215 } else if (r.IsDouble()) {
(...skipping 3694 matching lines...) Expand 10 before | Expand all | Expand 10 after
5905 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5910 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5906 __ ldr(result, FieldMemOperand(scratch, 5911 __ ldr(result, FieldMemOperand(scratch,
5907 FixedArray::kHeaderSize - kPointerSize)); 5912 FixedArray::kHeaderSize - kPointerSize));
5908 __ bind(&done); 5913 __ bind(&done);
5909 } 5914 }
5910 5915
5911 5916
5912 #undef __ 5917 #undef __
5913 5918
5914 } } // namespace v8::internal 5919 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698