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

Side by Side Diff: src/debug.cc

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-upload - catch up to 8/19 level Created 6 years, 3 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2274 matching lines...) Expand 10 before | Expand all | Expand 10 after
2285 if (RelocInfo::IsDebugBreakSlot(it.rinfo()->rmode())) { 2285 if (RelocInfo::IsDebugBreakSlot(it.rinfo()->rmode())) {
2286 at_debug_break_slot = (it.rinfo()->pc() == 2286 at_debug_break_slot = (it.rinfo()->pc() ==
2287 addr - Assembler::kPatchDebugBreakSlotAddressOffset); 2287 addr - Assembler::kPatchDebugBreakSlotAddressOffset);
2288 } 2288 }
2289 it.next(); 2289 it.next();
2290 } 2290 }
2291 2291
2292 // Handle the jump to continue execution after break point depending on the 2292 // Handle the jump to continue execution after break point depending on the
2293 // break location. 2293 // break location.
2294 if (at_js_return) { 2294 if (at_js_return) {
2295 // If the break point as return is still active jump to the corresponding 2295 // If the break point at return is still active jump to the corresponding
2296 // place in the original code. If not the break point was removed during 2296 // place in the original code. If not the break point was removed during
2297 // break point processing. 2297 // break point processing.
2298 if (break_at_js_return_active) { 2298 if (break_at_js_return_active) {
2299 addr += original_code->instruction_start() - code->instruction_start(); 2299 addr += original_code->instruction_start() - code->instruction_start();
2300 } 2300 }
2301 2301
2302 // Move back to where the call instruction sequence started. 2302 // Move back to where the call instruction sequence started.
2303 after_break_target_ = addr - Assembler::kPatchReturnSequenceAddressOffset; 2303 after_break_target_ = addr - Assembler::kPatchReturnSequenceAddressOffset;
2304 } else if (at_debug_break_slot) { 2304 } else if (at_debug_break_slot) {
2305 // Address of where the debug break slot starts. 2305 // Address of where the debug break slot starts.
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
3361 logger_->DebugEvent("Put", message.text()); 3361 logger_->DebugEvent("Put", message.text());
3362 } 3362 }
3363 3363
3364 3364
3365 void LockingCommandMessageQueue::Clear() { 3365 void LockingCommandMessageQueue::Clear() {
3366 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3366 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3367 queue_.Clear(); 3367 queue_.Clear();
3368 } 3368 }
3369 3369
3370 } } // namespace v8::internal 3370 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698