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

Side by Side Diff: src/debug.cc

Issue 2461002: - Begin removing [static] qualifier from methods in Bootstrapper. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 10 years, 6 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/bootstrapper.h ('k') | src/heap.cc » ('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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 Debugger::set_loading_debugger(true); 751 Debugger::set_loading_debugger(true);
752 752
753 // Disable breakpoints and interrupts while compiling and running the 753 // Disable breakpoints and interrupts while compiling and running the
754 // debugger scripts including the context creation code. 754 // debugger scripts including the context creation code.
755 DisableBreak disable(true); 755 DisableBreak disable(true);
756 PostponeInterruptsScope postpone; 756 PostponeInterruptsScope postpone;
757 757
758 // Create the debugger context. 758 // Create the debugger context.
759 HandleScope scope; 759 HandleScope scope;
760 Handle<Context> context = 760 Handle<Context> context =
761 Bootstrapper::CreateEnvironment(Handle<Object>::null(), 761 Isolate::Current()->bootstrapper()->CreateEnvironment(
762 v8::Handle<ObjectTemplate>(), 762 Handle<Object>::null(),
763 NULL); 763 v8::Handle<ObjectTemplate>(),
764 NULL);
764 765
765 // Use the debugger context. 766 // Use the debugger context.
766 SaveContext save; 767 SaveContext save;
767 Top::set_context(*context); 768 Top::set_context(*context);
768 769
769 // Expose the builtins object in the debugger context. 770 // Expose the builtins object in the debugger context.
770 Handle<String> key = Factory::LookupAsciiSymbol("builtins"); 771 Handle<String> key = Factory::LookupAsciiSymbol("builtins");
771 Handle<GlobalObject> global = Handle<GlobalObject>(context->global()); 772 Handle<GlobalObject> global = Handle<GlobalObject>(context->global());
772 SetProperty(global, key, Handle<Object>(global->builtins()), NONE); 773 SetProperty(global, key, Handle<Object>(global->builtins()), NONE);
773 774
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after
2850 { 2851 {
2851 Locker locker; 2852 Locker locker;
2852 Debugger::CallMessageDispatchHandler(); 2853 Debugger::CallMessageDispatchHandler();
2853 } 2854 }
2854 } 2855 }
2855 } 2856 }
2856 2857
2857 #endif // ENABLE_DEBUGGER_SUPPORT 2858 #endif // ENABLE_DEBUGGER_SUPPORT
2858 2859
2859 } } // namespace v8::internal 2860 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698