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

Side by Side Diff: src/debug.cc

Issue 24508006: remove uses of static oddball accessors using GetCurrent in advance of removal from api (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits Created 7 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/api.cc ('k') | test/cctest/test-accessors.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3117 matching lines...) Expand 10 before | Expand all | Expand 10 after
3128 // DebugCommandProcessor goes here. 3128 // DebugCommandProcessor goes here.
3129 v8::Local<v8::Object> cmd_processor; 3129 v8::Local<v8::Object> cmd_processor;
3130 { 3130 {
3131 v8::Local<v8::Object> api_exec_state = 3131 v8::Local<v8::Object> api_exec_state =
3132 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state)); 3132 v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state));
3133 v8::Local<v8::String> fun_name = 3133 v8::Local<v8::String> fun_name =
3134 v8::String::New("debugCommandProcessor"); 3134 v8::String::New("debugCommandProcessor");
3135 v8::Local<v8::Function> fun = 3135 v8::Local<v8::Function> fun =
3136 v8::Local<v8::Function>::Cast(api_exec_state->Get(fun_name)); 3136 v8::Local<v8::Function>::Cast(api_exec_state->Get(fun_name));
3137 3137
3138 v8::Handle<v8::Boolean> running = 3138 v8::Handle<v8::Boolean> running = v8::Boolean::New(auto_continue);
3139 auto_continue ? v8::True() : v8::False();
3140 static const int kArgc = 1; 3139 static const int kArgc = 1;
3141 v8::Handle<Value> argv[kArgc] = { running }; 3140 v8::Handle<Value> argv[kArgc] = { running };
3142 cmd_processor = v8::Local<v8::Object>::Cast( 3141 cmd_processor = v8::Local<v8::Object>::Cast(
3143 fun->Call(api_exec_state, kArgc, argv)); 3142 fun->Call(api_exec_state, kArgc, argv));
3144 if (try_catch.HasCaught()) { 3143 if (try_catch.HasCaught()) {
3145 PrintLn(try_catch.Exception()); 3144 PrintLn(try_catch.Exception());
3146 return; 3145 return;
3147 } 3146 }
3148 } 3147 }
3149 3148
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
3852 { 3851 {
3853 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); 3852 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_));
3854 isolate_->debugger()->CallMessageDispatchHandler(); 3853 isolate_->debugger()->CallMessageDispatchHandler();
3855 } 3854 }
3856 } 3855 }
3857 } 3856 }
3858 3857
3859 #endif // ENABLE_DEBUGGER_SUPPORT 3858 #endif // ENABLE_DEBUGGER_SUPPORT
3860 3859
3861 } } // namespace v8::internal 3860 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698