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

Side by Side Diff: src/debug.cc

Issue 109013: Add the ability to set embedder data on created contexts from the API (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 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') | test/cctest/test-debug.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 2154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 return v8::Handle<v8::String>(); 2165 return v8::Handle<v8::String>();
2166 } 2166 }
2167 return scope.Close(v8::Utils::ToLocal(Handle<String>::cast(json))); 2167 return scope.Close(v8::Utils::ToLocal(Handle<String>::cast(json)));
2168 } else { 2168 } else {
2169 return v8::Utils::ToLocal(response_json_); 2169 return v8::Utils::ToLocal(response_json_);
2170 } 2170 }
2171 } 2171 }
2172 2172
2173 2173
2174 v8::Handle<v8::Context> MessageImpl::GetEventContext() const { 2174 v8::Handle<v8::Context> MessageImpl::GetEventContext() const {
2175 return v8::Handle<v8::Context>(); 2175 return v8::Utils::ToLocal(Debug::debugger_entry()->GetContext());
2176 } 2176 }
2177 2177
2178 2178
2179 v8::Debug::ClientData* MessageImpl::GetClientData() const { 2179 v8::Debug::ClientData* MessageImpl::GetClientData() const {
2180 return client_data_; 2180 return client_data_;
2181 } 2181 }
2182 2182
2183 2183
2184 CommandMessage::CommandMessage() : text_(Vector<uint16_t>::empty()), 2184 CommandMessage::CommandMessage() : text_(Vector<uint16_t>::empty()),
2185 client_data_(NULL) { 2185 client_data_(NULL) {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2289 2289
2290 2290
2291 void LockingCommandMessageQueue::Clear() { 2291 void LockingCommandMessageQueue::Clear() {
2292 ScopedLock sl(lock_); 2292 ScopedLock sl(lock_);
2293 queue_.Clear(); 2293 queue_.Clear();
2294 } 2294 }
2295 2295
2296 #endif // ENABLE_DEBUGGER_SUPPORT 2296 #endif // ENABLE_DEBUGGER_SUPPORT
2297 2297
2298 } } // namespace v8::internal 2298 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698