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

Side by Side Diff: src/arm/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/codegen-arm.h ('k') | src/arm/debug-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 int32_t sp_delta = (scope()->num_parameters() + 1) * kPointerSize; 379 int32_t sp_delta = (scope()->num_parameters() + 1) * kPointerSize;
380 masm_->add(sp, sp, Operand(sp_delta)); 380 masm_->add(sp, sp, Operand(sp_delta));
381 masm_->Jump(lr); 381 masm_->Jump(lr);
382 382
383 #ifdef DEBUG 383 #ifdef DEBUG
384 // Check that the size of the code used for returning matches what is 384 // Check that the size of the code used for returning matches what is
385 // expected by the debugger. If the sp_delts above cannot be encoded in 385 // expected by the debugger. If the sp_delts above cannot be encoded in
386 // the add instruction the add will generate two instructions. 386 // the add instruction the add will generate two instructions.
387 int return_sequence_length = 387 int return_sequence_length =
388 masm_->InstructionsGeneratedSince(&check_exit_codesize); 388 masm_->InstructionsGeneratedSince(&check_exit_codesize);
389 CHECK(return_sequence_length == Assembler::kJSReturnSequenceLength || 389 CHECK(return_sequence_length ==
390 return_sequence_length == Assembler::kJSReturnSequenceLength + 1); 390 Assembler::kJSReturnSequenceInstructions ||
391 return_sequence_length ==
392 Assembler::kJSReturnSequenceInstructions + 1);
391 #endif 393 #endif
392 } 394 }
393 } 395 }
394 396
395 // Adjust for function-level loop nesting. 397 // Adjust for function-level loop nesting.
396 ASSERT(loop_nesting_ == info->loop_nesting()); 398 ASSERT(loop_nesting_ == info->loop_nesting());
397 loop_nesting_ = 0; 399 loop_nesting_ = 0;
398 400
399 // Code generation state must be reset. 401 // Code generation state must be reset.
400 ASSERT(!has_cc()); 402 ASSERT(!has_cc());
(...skipping 10135 matching lines...) Expand 10 before | Expand all | Expand 10 after
10536 __ bind(&string_add_runtime); 10538 __ bind(&string_add_runtime);
10537 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 10539 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
10538 } 10540 }
10539 10541
10540 10542
10541 #undef __ 10543 #undef __
10542 10544
10543 } } // namespace v8::internal 10545 } } // namespace v8::internal
10544 10546
10545 #endif // V8_TARGET_ARCH_ARM 10547 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/arm/debug-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698