|
Lines 836-841
bool WebPagePrivate::executeJavaScriptInIsolatedWorld(const ScriptSourceCode& so
a/Source/WebKit/blackberry/Api/WebPage.cpp_sec1
|
| 836 |
JSC::ExecState* exec = m_mainFrame->script()->globalObject(m_isolatedWorld.get())->globalExec(); |
836 |
JSC::ExecState* exec = m_mainFrame->script()->globalObject(m_isolatedWorld.get())->globalExec(); |
| 837 |
JSGlobalContextRef context = toGlobalRef(exec); |
837 |
JSGlobalContextRef context = toGlobalRef(exec); |
| 838 |
|
838 |
|
|
|
839 |
JSC::JSLockHolder lock(exec); |
| 839 |
JSType type = JSValueGetType(context, toRef(exec, value)); |
840 |
JSType type = JSValueGetType(context, toRef(exec, value)); |
| 840 |
|
841 |
|
| 841 |
switch (type) { |
842 |
switch (type) { |
|
Lines 910-915
void WebPage::executeJavaScriptFunction(const std::vector<BlackBerry::Platform::
a/Source/WebKit/blackberry/Api/WebPage.cpp_sec2
|
| 910 |
JSC::ExecState* exec = root->globalObject()->globalExec(); |
911 |
JSC::ExecState* exec = root->globalObject()->globalExec(); |
| 911 |
JSGlobalContextRef ctx = toGlobalRef(exec); |
912 |
JSGlobalContextRef ctx = toGlobalRef(exec); |
| 912 |
|
913 |
|
|
|
914 |
JSC::JSLockHolder lock(exec); |
| 913 |
WTF::Vector<JSValueRef> argListRef(args.size()); |
915 |
WTF::Vector<JSValueRef> argListRef(args.size()); |
| 914 |
for (unsigned i = 0; i < args.size(); ++i) |
916 |
for (unsigned i = 0; i < args.size(); ++i) |
| 915 |
argListRef[i] = BlackBerryJavaScriptVariantToJSValueRef(ctx, args[i]); |
917 |
argListRef[i] = BlackBerryJavaScriptVariantToJSValueRef(ctx, args[i]); |