| 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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 isolate_->set_context(*context); | 817 isolate_->set_context(*context); |
| 818 | 818 |
| 819 // Expose the builtins object in the debugger context. | 819 // Expose the builtins object in the debugger context. |
| 820 Handle<String> key = isolate_->factory()->InternalizeOneByteString( | 820 Handle<String> key = isolate_->factory()->InternalizeOneByteString( |
| 821 STATIC_ASCII_VECTOR("builtins")); | 821 STATIC_ASCII_VECTOR("builtins")); |
| 822 Handle<GlobalObject> global = | 822 Handle<GlobalObject> global = |
| 823 Handle<GlobalObject>(context->global_object(), isolate_); | 823 Handle<GlobalObject>(context->global_object(), isolate_); |
| 824 Handle<JSBuiltinsObject> builtin = | 824 Handle<JSBuiltinsObject> builtin = |
| 825 Handle<JSBuiltinsObject>(global->builtins(), isolate_); | 825 Handle<JSBuiltinsObject>(global->builtins(), isolate_); |
| 826 RETURN_ON_EXCEPTION_VALUE( | 826 RETURN_ON_EXCEPTION_VALUE( |
| 827 isolate_, JSReceiver::SetProperty(global, key, builtin, SLOPPY), false); | 827 isolate_, Object::SetProperty(global, key, builtin, SLOPPY), false); |
| 828 | 828 |
| 829 // Compile the JavaScript for the debugger in the debugger context. | 829 // Compile the JavaScript for the debugger in the debugger context. |
| 830 bool caught_exception = | 830 bool caught_exception = |
| 831 !CompileDebuggerScript(isolate_, Natives::GetIndex("mirror")) || | 831 !CompileDebuggerScript(isolate_, Natives::GetIndex("mirror")) || |
| 832 !CompileDebuggerScript(isolate_, Natives::GetIndex("debug")); | 832 !CompileDebuggerScript(isolate_, Natives::GetIndex("debug")); |
| 833 | 833 |
| 834 if (FLAG_enable_liveedit) { | 834 if (FLAG_enable_liveedit) { |
| 835 caught_exception = caught_exception || | 835 caught_exception = caught_exception || |
| 836 !CompileDebuggerScript(isolate_, Natives::GetIndex("liveedit")); | 836 !CompileDebuggerScript(isolate_, Natives::GetIndex("liveedit")); |
| 837 } | 837 } |
| (...skipping 2562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3400 logger_->DebugEvent("Put", message.text()); | 3400 logger_->DebugEvent("Put", message.text()); |
| 3401 } | 3401 } |
| 3402 | 3402 |
| 3403 | 3403 |
| 3404 void LockingCommandMessageQueue::Clear() { | 3404 void LockingCommandMessageQueue::Clear() { |
| 3405 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3405 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 3406 queue_.Clear(); | 3406 queue_.Clear(); |
| 3407 } | 3407 } |
| 3408 | 3408 |
| 3409 } } // namespace v8::internal | 3409 } } // namespace v8::internal |
| OLD | NEW |