| 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 Handle<String> source_code = | 737 Handle<String> source_code = |
| 738 isolate->bootstrapper()->NativesSourceLookup(index); | 738 isolate->bootstrapper()->NativesSourceLookup(index); |
| 739 Vector<const char> name = Natives::GetScriptName(index); | 739 Vector<const char> name = Natives::GetScriptName(index); |
| 740 Handle<String> script_name = | 740 Handle<String> script_name = |
| 741 factory->NewStringFromAscii(name).ToHandleChecked(); | 741 factory->NewStringFromAscii(name).ToHandleChecked(); |
| 742 Handle<Context> context = isolate->native_context(); | 742 Handle<Context> context = isolate->native_context(); |
| 743 | 743 |
| 744 // Compile the script. | 744 // Compile the script. |
| 745 Handle<SharedFunctionInfo> function_info; | 745 Handle<SharedFunctionInfo> function_info; |
| 746 function_info = Compiler::CompileScript( | 746 function_info = Compiler::CompileScript( |
| 747 source_code, script_name, 0, 0, false, context, NULL, NULL, | 747 source_code, script_name, 0, 0, false, false, context, NULL, NULL, |
| 748 ScriptCompiler::kNoCompileOptions, NATIVES_CODE); | 748 ScriptCompiler::kNoCompileOptions, NATIVES_CODE); |
| 749 | 749 |
| 750 // Silently ignore stack overflows during compilation. | 750 // Silently ignore stack overflows during compilation. |
| 751 if (function_info.is_null()) { | 751 if (function_info.is_null()) { |
| 752 DCHECK(isolate->has_pending_exception()); | 752 DCHECK(isolate->has_pending_exception()); |
| 753 isolate->clear_pending_exception(); | 753 isolate->clear_pending_exception(); |
| 754 return false; | 754 return false; |
| 755 } | 755 } |
| 756 | 756 |
| 757 // Execute the shared function in the debugger context. | 757 // Execute the shared function in the debugger context. |
| (...skipping 2734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3492 logger_->DebugEvent("Put", message.text()); | 3492 logger_->DebugEvent("Put", message.text()); |
| 3493 } | 3493 } |
| 3494 | 3494 |
| 3495 | 3495 |
| 3496 void LockingCommandMessageQueue::Clear() { | 3496 void LockingCommandMessageQueue::Clear() { |
| 3497 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3497 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 3498 queue_.Clear(); | 3498 queue_.Clear(); |
| 3499 } | 3499 } |
| 3500 | 3500 |
| 3501 } } // namespace v8::internal | 3501 } } // namespace v8::internal |
| OLD | NEW |