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

Side by Side Diff: src/debug.cc

Issue 1137683003: Only record one in n line endings to save space. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix false detection of exotic newlines Created 5 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
« no previous file with comments | « no previous file | src/isolate.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 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 2534 matching lines...) Expand 10 before | Expand all | Expand 10 after
2545 // Create the compile state object. 2545 // Create the compile state object.
2546 Handle<Object> event_data; 2546 Handle<Object> event_data;
2547 // Bail out and don't call debugger if exception. 2547 // Bail out and don't call debugger if exception.
2548 if (!MakeCompileEvent(script, v8::CompileError).ToHandle(&event_data)) return; 2548 if (!MakeCompileEvent(script, v8::CompileError).ToHandle(&event_data)) return;
2549 2549
2550 // Process debug event. 2550 // Process debug event.
2551 ProcessDebugEvent(v8::CompileError, Handle<JSObject>::cast(event_data), true); 2551 ProcessDebugEvent(v8::CompileError, Handle<JSObject>::cast(event_data), true);
2552 } 2552 }
2553 2553
2554 2554
2555 void Debug::OnDebugBreak(Handle<Object> break_points_hit, 2555 void Debug::OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue) {
2556 bool auto_continue) {
2557 // The caller provided for DebugScope. 2556 // The caller provided for DebugScope.
2558 AssertDebugContext(); 2557 AssertDebugContext();
2559 // Bail out if there is no listener for this event 2558 // Bail out if there is no listener for this event
2560 if (ignore_events()) return; 2559 if (ignore_events()) return;
2561 2560
2562 HandleScope scope(isolate_); 2561 HandleScope scope(isolate_);
2563 // Create the event data object. 2562 // Create the event data object.
2564 Handle<Object> event_data; 2563 Handle<Object> event_data;
2565 // Bail out and don't call debugger if exception. 2564 // Bail out and don't call debugger if exception.
2566 if (!MakeBreakEvent(break_points_hit).ToHandle(&event_data)) return; 2565 if (!MakeBreakEvent(break_points_hit).ToHandle(&event_data)) return;
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
3364 } 3363 }
3365 3364
3366 3365
3367 void LockingCommandMessageQueue::Clear() { 3366 void LockingCommandMessageQueue::Clear() {
3368 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3367 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3369 queue_.Clear(); 3368 queue_.Clear();
3370 } 3369 }
3371 3370
3372 } // namespace internal 3371 } // namespace internal
3373 } // namespace v8 3372 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698