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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 2693002: More precise break points and stepping when debugging... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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/debug-arm.cc ('k') | src/assembler.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 masm_->add(sp, sp, Operand(sp_delta)); 231 masm_->add(sp, sp, Operand(sp_delta));
232 masm_->Jump(lr); 232 masm_->Jump(lr);
233 } 233 }
234 234
235 #ifdef DEBUG 235 #ifdef DEBUG
236 // Check that the size of the code used for returning matches what is 236 // Check that the size of the code used for returning matches what is
237 // expected by the debugger. If the sp_delts above cannot be encoded in the 237 // expected by the debugger. If the sp_delts above cannot be encoded in the
238 // add instruction the add will generate two instructions. 238 // add instruction the add will generate two instructions.
239 int return_sequence_length = 239 int return_sequence_length =
240 masm_->InstructionsGeneratedSince(&check_exit_codesize); 240 masm_->InstructionsGeneratedSince(&check_exit_codesize);
241 CHECK(return_sequence_length == Assembler::kJSReturnSequenceLength || 241 CHECK(return_sequence_length ==
242 return_sequence_length == Assembler::kJSReturnSequenceLength + 1); 242 Assembler::kJSReturnSequenceInstructions ||
243 return_sequence_length ==
244 Assembler::kJSReturnSequenceInstructions + 1);
243 #endif 245 #endif
244 } 246 }
245 } 247 }
246 248
247 249
248 void FullCodeGenerator::Apply(Expression::Context context, Register reg) { 250 void FullCodeGenerator::Apply(Expression::Context context, Register reg) {
249 switch (context) { 251 switch (context) {
250 case Expression::kUninitialized: 252 case Expression::kUninitialized:
251 UNREACHABLE(); 253 UNREACHABLE();
252 254
(...skipping 2880 matching lines...) Expand 10 before | Expand all | Expand 10 after
3133 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 3135 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
3134 __ add(pc, r1, Operand(masm_->CodeObject())); 3136 __ add(pc, r1, Operand(masm_->CodeObject()));
3135 } 3137 }
3136 3138
3137 3139
3138 #undef __ 3140 #undef __
3139 3141
3140 } } // namespace v8::internal 3142 } } // namespace v8::internal
3141 3143
3142 #endif // V8_TARGET_ARCH_ARM 3144 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/debug-arm.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698