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

Side by Side Diff: src/debug/debug.cc

Issue 1584023003: [debugger] tentative fix for crash in FindSharedFunctionInfoInScript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 | no next file » | 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/debug/debug.h" 5 #include "src/debug/debug.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 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 } else { 1293 } else {
1294 continue; 1294 continue;
1295 } 1295 }
1296 if (candidate->script() == *script) { 1296 if (candidate->script() == *script) {
1297 finder.NewCandidate(candidate, candidate_closure); 1297 finder.NewCandidate(candidate, candidate_closure);
1298 } 1298 }
1299 } 1299 }
1300 closure = finder.ResultClosure(); 1300 closure = finder.ResultClosure();
1301 shared = finder.Result(); 1301 shared = finder.Result();
1302 } 1302 }
1303 if (shared == NULL) break;
1303 HandleScope scope(isolate_); 1304 HandleScope scope(isolate_);
1304 if (closure == NULL) { 1305 if (closure == NULL) {
1305 if (!Compiler::CompileDebugCode(handle(shared))) break; 1306 if (!Compiler::CompileDebugCode(handle(shared))) break;
1306 } else { 1307 } else {
1307 if (!Compiler::CompileDebugCode(handle(closure))) break; 1308 if (!Compiler::CompileDebugCode(handle(closure))) break;
1308 } 1309 }
1309 } 1310 }
1310 return isolate_->factory()->undefined_value(); 1311 return isolate_->factory()->undefined_value();
1311 } 1312 }
1312 1313
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 } 2405 }
2405 2406
2406 2407
2407 void LockingCommandMessageQueue::Clear() { 2408 void LockingCommandMessageQueue::Clear() {
2408 base::LockGuard<base::Mutex> lock_guard(&mutex_); 2409 base::LockGuard<base::Mutex> lock_guard(&mutex_);
2409 queue_.Clear(); 2410 queue_.Clear();
2410 } 2411 }
2411 2412
2412 } // namespace internal 2413 } // namespace internal
2413 } // namespace v8 2414 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698