OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |