| 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/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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 731   // Find source and name for the requested script. | 731   // Find source and name for the requested script. | 
| 732   Handle<String> source_code = | 732   Handle<String> source_code = | 
| 733       isolate->bootstrapper()->NativesSourceLookup(index); | 733       isolate->bootstrapper()->NativesSourceLookup(index); | 
| 734   Vector<const char> name = Natives::GetScriptName(index); | 734   Vector<const char> name = Natives::GetScriptName(index); | 
| 735   Handle<String> script_name = | 735   Handle<String> script_name = | 
| 736       factory->NewStringFromAscii(name).ToHandleChecked(); | 736       factory->NewStringFromAscii(name).ToHandleChecked(); | 
| 737   Handle<Context> context = isolate->native_context(); | 737   Handle<Context> context = isolate->native_context(); | 
| 738 | 738 | 
| 739   // Compile the script. | 739   // Compile the script. | 
| 740   Handle<SharedFunctionInfo> function_info; | 740   Handle<SharedFunctionInfo> function_info; | 
| 741   function_info = Compiler::CompileScript(source_code, | 741   function_info = Compiler::CompileScript( | 
| 742                                           script_name, 0, 0, | 742       source_code, script_name, 0, 0, false, context, NULL, NULL, | 
| 743                                           false, | 743       ScriptCompiler::kNoCompileOptions, NATIVES_CODE); | 
| 744                                           context, |  | 
| 745                                           NULL, NULL, NO_CACHED_DATA, |  | 
| 746                                           NATIVES_CODE); |  | 
| 747 | 744 | 
| 748   // Silently ignore stack overflows during compilation. | 745   // Silently ignore stack overflows during compilation. | 
| 749   if (function_info.is_null()) { | 746   if (function_info.is_null()) { | 
| 750     ASSERT(isolate->has_pending_exception()); | 747     ASSERT(isolate->has_pending_exception()); | 
| 751     isolate->clear_pending_exception(); | 748     isolate->clear_pending_exception(); | 
| 752     return false; | 749     return false; | 
| 753   } | 750   } | 
| 754 | 751 | 
| 755   // Execute the shared function in the debugger context. | 752   // Execute the shared function in the debugger context. | 
| 756   Handle<JSFunction> function = | 753   Handle<JSFunction> function = | 
| (...skipping 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3404   logger_->DebugEvent("Put", message.text()); | 3401   logger_->DebugEvent("Put", message.text()); | 
| 3405 } | 3402 } | 
| 3406 | 3403 | 
| 3407 | 3404 | 
| 3408 void LockingCommandMessageQueue::Clear() { | 3405 void LockingCommandMessageQueue::Clear() { | 
| 3409   base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3406   base::LockGuard<base::Mutex> lock_guard(&mutex_); | 
| 3410   queue_.Clear(); | 3407   queue_.Clear(); | 
| 3411 } | 3408 } | 
| 3412 | 3409 | 
| 3413 } }  // namespace v8::internal | 3410 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|