Revert "Per-isolate embedder-specific data"
authordslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 18 May 2011 22:35:41 +0000 (22:35 +0000)
committerdslomov@chromium.org <dslomov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 18 May 2011 22:35:41 +0000 (22:35 +0000)
This reverts commit 42f5dc01fb9adbf55242da9f6515e9a37132217b.

Checking if this helps webkit-tests

TBR=dslomov@chromium.org

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7946 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

include/v8.h
src/api.cc
src/isolate.cc
src/isolate.h

index fce50fc..411c2f1 100644 (file)
@@ -2670,17 +2670,6 @@ class V8EXPORT Isolate {
    */
   void Dispose();
 
-  /**
-   * Associate embedder-specific data with the isolate
-   */
-  void SetData(void* data);
-
-  /**
-   * Retrive embedder-specific data from the isolate.
-   * Returns NULL if SetData has never been called.
-   */
-  void* GetData();
-
  private:
 
   Isolate();
index 6369a9f..30e0881 100644 (file)
@@ -4870,17 +4870,6 @@ void Isolate::Exit() {
 }
 
 
-void Isolate::SetData(void* data) {
-  i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
-  isolate->SetData(data);
-}
-
-void* Isolate::GetData() {
-  i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
-  return isolate->GetData();
-}
-
-
 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj)
     : str_(NULL), length_(0) {
   i::Isolate* isolate = i::Isolate::Current();
index a7bf7d9..22a659a 100644 (file)
@@ -1397,8 +1397,7 @@ Isolate::Isolate()
       string_tracker_(NULL),
       regexp_stack_(NULL),
       frame_element_constant_list_(0),
-      result_constant_list_(0),
-      embedder_data_(NULL) {
+      result_constant_list_(0) {
   TRACE_ISOLATE(constructor);
 
   memset(isolate_addresses_, 0,
index fbe0b43..088c247 100644 (file)
@@ -994,9 +994,6 @@ class Isolate {
 
   void ResetEagerOptimizingData();
 
-  void SetData(void* data) { embedder_data_ = data; }
-  void* GetData() { return embedder_data_; }
-
  private:
   Isolate();
 
@@ -1159,7 +1156,6 @@ class Isolate {
   unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
   ZoneObjectList frame_element_constant_list_;
   ZoneObjectList result_constant_list_;
-  void* embedder_data_;
 
 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \
     defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__)