[V8] Inline firstFrame and currentFrame into their unique callers
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Sep 2012 23:21:37 +0000 (23:21 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Sep 2012 23:21:37 +0000 (23:21 +0000)
commit2a0b2e21d63325288dc12ce947e1cdc7eb3c4799
tree1397cd534cd89c9517ec9ec65e4f1dc3f4b44a68
parent739d8234c0c345b61213f0d11c74c337a986a086
[V8] Inline firstFrame and currentFrame into their unique callers
https://bugs.webkit.org/show_bug.cgi?id=96309

Patch by Adam Barth <abarth@chromium.org> on 2012-09-10
Reviewed by Eric Seidel.

Source/WebCore:

These functions have only one caller. We'd prefer not to have more
callers (because there's usually no reason to indirect through the
Frame), so we should inline them into their one caller (which is the
Chromium WebKit API).

* bindings/js/BindingState.h:
(WebCore):
* bindings/v8/BindingState.cpp:
* bindings/v8/BindingState.h:
(WebCore):
* bindings/v8/ScriptController.cpp:
* bindings/v8/ScriptController.h:
(ScriptController):

Source/WebKit/chromium:

This patch just lines these WebCore functions because we only call them
from here.

* src/WebFrameImpl.cpp:
(WebKit::WebFrame::frameForEnteredContext):
(WebKit::WebFrame::frameForCurrentContext):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@128123 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/BindingState.h
Source/WebCore/bindings/v8/BindingState.cpp
Source/WebCore/bindings/v8/BindingState.h
Source/WebCore/bindings/v8/ScriptController.cpp
Source/WebCore/bindings/v8/ScriptController.h
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/WebFrameImpl.cpp