Changeset 140387 in webkit


Ignore:
Timestamp:
Jan 21, 2013 11:33:16 PM (11 years ago)
Author:
haraken@chromium.org
Message:

[V8] ScriptState::isolate() should use Context::GetIsolate()
https://bugs.webkit.org/show_bug.cgi?id=107490

Reviewed by Adam Barth.

Now V8 provides Context::GetIsolate(). We should use it
in ScriptState::isolate().

  • bindings/v8/ScriptState.h:

(WebCore::ScriptState::isolate):
(ScriptState):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140386 r140387  
     12013-01-21  Kentaro Hara  <haraken@chromium.org>
     2
     3        [V8] ScriptState::isolate() should use Context::GetIsolate()
     4        https://bugs.webkit.org/show_bug.cgi?id=107490
     5
     6        Reviewed by Adam Barth.
     7
     8        Now V8 provides Context::GetIsolate(). We should use it
     9        in ScriptState::isolate().
     10
     11        * bindings/v8/ScriptState.h:
     12        (WebCore::ScriptState::isolate):
     13        (ScriptState):
     14
    1152013-01-21  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
    216
  • trunk/Source/WebCore/bindings/v8/ScriptState.h

    r139854 r140387  
    6666    v8::Isolate* isolate()
    6767    {
    68         if (!m_isolate)
    69             m_isolate = v8::Isolate::GetCurrent();
    70         return m_isolate;
     68        return m_context->GetIsolate();
    7169    }
    7270
     
    8987    v8::Local<v8::Value> m_exception;
    9088    ScopedPersistent<v8::Context> m_context;
    91     v8::Isolate* m_isolate;
    9289};
    9390
Note: See TracChangeset for help on using the changeset viewer.