Revision: 8266
Author: [email protected]
Date: Fri Jun 10 05:41:35 2011
Log: removed isolates from d8 since they are not necessary anymore
http://code.google.com/p/v8/source/detail?r=8266
Modified:
/branches/bleeding_edge/src/d8-debug.cc
/branches/bleeding_edge/src/d8-debug.h
/branches/bleeding_edge/src/d8.cc
=======================================
--- /branches/bleeding_edge/src/d8-debug.cc Fri Mar 18 13:35:07 2011
+++ /branches/bleeding_edge/src/d8-debug.cc Fri Jun 10 05:41:35 2011
@@ -159,7 +159,7 @@
void RunRemoteDebugger(int port) {
- RemoteDebugger debugger(i::Isolate::Current(), port);
+ RemoteDebugger debugger(port);
debugger.Run();
}
@@ -186,11 +186,11 @@
}
// Start the receiver thread.
- ReceiverThread receiver(isolate_, this);
+ ReceiverThread receiver(this);
receiver.Start();
// Start the keyboard thread.
- KeyboardThread keyboard(isolate_, this);
+ KeyboardThread keyboard(this);
keyboard.Start();
PrintPrompt();
=======================================
--- /branches/bleeding_edge/src/d8-debug.h Fri Jun 10 05:41:26 2011
+++ /branches/bleeding_edge/src/d8-debug.h Fri Jun 10 05:41:35 2011
@@ -53,11 +53,11 @@
// Remote debugging class.
class RemoteDebugger {
public:
- RemoteDebugger(i::Isolate* isolate, int port)
+ RemoteDebugger(int port)
: port_(port),
event_access_(i::OS::CreateMutex()),
event_available_(i::OS::CreateSemaphore(0)),
- head_(NULL), tail_(NULL), isolate_(isolate) {}
+ head_(NULL), tail_(NULL) {}
void Run();
// Handle events from the subordinate threads.
@@ -89,7 +89,6 @@
i::Semaphore* event_available_;
RemoteDebuggerEvent* head_;
RemoteDebuggerEvent* tail_;
- i::Isolate* isolate_;
friend class ReceiverThread;
};
@@ -98,7 +97,7 @@
// Thread reading from debugged V8 instance.
class ReceiverThread: public i::Thread {
public:
- ReceiverThread(i::Isolate* isolate, RemoteDebugger* remote_debugger)
+ ReceiverThread(RemoteDebugger* remote_debugger)
: Thread("d8:ReceiverThrd"),
remote_debugger_(remote_debugger) {}
~ReceiverThread() {}
@@ -113,7 +112,7 @@
// Thread reading keyboard input.
class KeyboardThread: public i::Thread {
public:
- explicit KeyboardThread(i::Isolate* isolate, RemoteDebugger*
remote_debugger)
+ explicit KeyboardThread(RemoteDebugger* remote_debugger)
: Thread("d8:KeyboardThrd"),
remote_debugger_(remote_debugger) {}
~KeyboardThread() {}
=======================================
--- /branches/bleeding_edge/src/d8.cc Fri Jun 10 05:41:26 2011
+++ /branches/bleeding_edge/src/d8.cc Fri Jun 10 05:41:35 2011
@@ -771,7 +771,7 @@
class ShellThread : public i::Thread {
public:
- ShellThread(i::Isolate* isolate, int no, i::Vector<const char> files)
+ ShellThread(int no, i::Vector<const char> files)
: Thread("d8:ShellThread"),
no_(no), files_(files) { }
virtual void Run();
@@ -879,8 +879,7 @@
const char* files = ReadChars(argv[++i], &size);
if (files == NULL) return 1;
ShellThread* thread =
- new ShellThread(i::Isolate::Current(),
- threads.length(),
+ new ShellThread(threads.length(),
i::Vector<const char>(files, size));
thread->Start();
threads.Add(thread);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev