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

Side by Side Diff: src/debug.cc

Issue 9008012: Move handlified functions from handles.cc to objects.cc (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More formatting fixes. Created 8 years, 11 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.cc ('k') | src/factory.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 820
821 // Use the debugger context. 821 // Use the debugger context.
822 SaveContext save(isolate_); 822 SaveContext save(isolate_);
823 isolate_->set_context(*context); 823 isolate_->set_context(*context);
824 824
825 // Expose the builtins object in the debugger context. 825 // Expose the builtins object in the debugger context.
826 Handle<String> key = isolate_->factory()->LookupAsciiSymbol("builtins"); 826 Handle<String> key = isolate_->factory()->LookupAsciiSymbol("builtins");
827 Handle<GlobalObject> global = Handle<GlobalObject>(context->global()); 827 Handle<GlobalObject> global = Handle<GlobalObject>(context->global());
828 RETURN_IF_EMPTY_HANDLE_VALUE( 828 RETURN_IF_EMPTY_HANDLE_VALUE(
829 isolate_, 829 isolate_,
830 SetProperty(global, key, Handle<Object>(global->builtins()), 830 JSReceiver::SetProperty(global, key, Handle<Object>(global->builtins()),
831 NONE, kNonStrictMode), 831 NONE, kNonStrictMode),
832 false); 832 false);
833 833
834 // Compile the JavaScript for the debugger in the debugger context. 834 // Compile the JavaScript for the debugger in the debugger context.
835 debugger->set_compiling_natives(true); 835 debugger->set_compiling_natives(true);
836 bool caught_exception = 836 bool caught_exception =
837 !CompileDebuggerScript(Natives::GetIndex("mirror")) || 837 !CompileDebuggerScript(Natives::GetIndex("mirror")) ||
838 !CompileDebuggerScript(Natives::GetIndex("debug")); 838 !CompileDebuggerScript(Natives::GetIndex("debug"));
839 839
840 if (FLAG_enable_liveedit) { 840 if (FLAG_enable_liveedit) {
841 caught_exception = caught_exception || 841 caught_exception = caught_exception ||
(...skipping 2648 matching lines...) Expand 10 before | Expand all | Expand 10 after
3490 { 3490 {
3491 Locker locker; 3491 Locker locker;
3492 Isolate::Current()->debugger()->CallMessageDispatchHandler(); 3492 Isolate::Current()->debugger()->CallMessageDispatchHandler();
3493 } 3493 }
3494 } 3494 }
3495 } 3495 }
3496 3496
3497 #endif // ENABLE_DEBUGGER_SUPPORT 3497 #endif // ENABLE_DEBUGGER_SUPPORT
3498 3498
3499 } } // namespace v8::internal 3499 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698