Reviewers: Dmitry Titov,

Message:
Thanks
  Luke

Description:
[Isolates] Get d8 to compile again.


Please review this at http://codereview.chromium.org/3028006/show

SVN Base: http://v8.googlecode.com/svn/branches/experimental/isolates/

Affected files:
  M     src/d8.cc


Index: src/d8.cc
===================================================================
--- src/d8.cc   (revision 5088)
+++ src/d8.cc   (working copy)
@@ -445,10 +445,11 @@
                        Utils::ToLocal(arguments_jsarray));

 #ifdef ENABLE_DEBUGGER_SUPPORT
+  i::Debug* debug_object = i::Isolate::Current()->debug();
   // Install the debugger object in the utility scope
-  i::Debug::Load();
+  debug_object->Load();
   i::Handle<i::JSObject> debug
-      = i::Handle<i::JSObject>(i::Debug::debug_context()->global());
+      = i::Handle<i::JSObject>(debug_object->debug_context()->global());
   utility_context_->Global()->Set(String::New("$debug"),
                                   Utils::ToLocal(debug));
 #endif
@@ -482,7 +483,8 @@

 #ifdef ENABLE_DEBUGGER_SUPPORT
   // Set the security token of the debug context to allow access.
- i::Debug::debug_context()->set_security_token(i::Heap::undefined_value());
+  debug_object->debug_context()->set_security_token(
+      HEAP->undefined_value());

   // Start the debugger agent if requested.
   if (i::FLAG_debugger_agent) {


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to