Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/debug.cc

Issue 7366: Split window support from V8. ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/debug.h ('k') | src/factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698