| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 // Create the debugger context. | 563 // Create the debugger context. |
| 564 HandleScope scope; | 564 HandleScope scope; |
| 565 Handle<Context> context = | 565 Handle<Context> context = |
| 566 Bootstrapper::CreateEnvironment(Handle<Object>::null(), | 566 Bootstrapper::CreateEnvironment(Handle<Object>::null(), |
| 567 v8::Handle<ObjectTemplate>(), | 567 v8::Handle<ObjectTemplate>(), |
| 568 NULL); | 568 NULL); |
| 569 | 569 |
| 570 // Use the debugger context. | 570 // Use the debugger context. |
| 571 SaveContext save; | 571 SaveContext save; |
| 572 Top::set_context(*context); | 572 Top::set_context(*context); |
| 573 Top::set_security_context(*context); | |
| 574 | 573 |
| 575 // Expose the builtins object in the debugger context. | 574 // Expose the builtins object in the debugger context. |
| 576 Handle<String> key = Factory::LookupAsciiSymbol("builtins"); | 575 Handle<String> key = Factory::LookupAsciiSymbol("builtins"); |
| 577 Handle<GlobalObject> global = Handle<GlobalObject>(context->global()); | 576 Handle<GlobalObject> global = Handle<GlobalObject>(context->global()); |
| 578 SetProperty(global, key, Handle<Object>(global->builtins()), NONE); | 577 SetProperty(global, key, Handle<Object>(global->builtins()), NONE); |
| 579 | 578 |
| 580 // Compile the JavaScript for the debugger in the debugger context. | 579 // Compile the JavaScript for the debugger in the debugger context. |
| 581 Debugger::set_compiling_natives(true); | 580 Debugger::set_compiling_natives(true); |
| 582 bool caught_exception = | 581 bool caught_exception = |
| 583 !CompileDebuggerScript(Natives::GetIndex("mirror")) || | 582 !CompileDebuggerScript(Natives::GetIndex("mirror")) || |
| (...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1964 } | 1963 } |
| 1965 | 1964 |
| 1966 | 1965 |
| 1967 void LockingMessageQueue::Clear() { | 1966 void LockingMessageQueue::Clear() { |
| 1968 ScopedLock sl(lock_); | 1967 ScopedLock sl(lock_); |
| 1969 queue_.Clear(); | 1968 queue_.Clear(); |
| 1970 } | 1969 } |
| 1971 | 1970 |
| 1972 | 1971 |
| 1973 } } // namespace v8::internal | 1972 } } // namespace v8::internal |
| OLD | NEW |