Index: Source/bindings/core/v8/ScriptController.cpp |
diff --git a/Source/bindings/core/v8/ScriptController.cpp b/Source/bindings/core/v8/ScriptController.cpp |
index e2fb2110effb04272e11cf2740cffc82dd3b7341..97a7ff9eeaf06d2fd0dada1a3cbf73a63e183300 100644 |
--- a/Source/bindings/core/v8/ScriptController.cpp |
+++ b/Source/bindings/core/v8/ScriptController.cpp |
@@ -174,6 +174,10 @@ v8::Local<v8::Value> ScriptController::executeScriptAndReturnValue(v8::Handle<v8 |
v8::Local<v8::Value> result; |
{ |
+ V8CacheOptions v8CacheOptions(V8CacheOptionsOff); |
+ if (m_frame->settings()) |
+ v8CacheOptions = m_frame->settings()->v8CacheOptions(); |
+ |
// Isolate exceptions that occur when compiling and executing |
// the code. These exceptions should not interfere with |
// javascript code we might evaluate from C++ when returning |
@@ -181,7 +185,7 @@ v8::Local<v8::Value> ScriptController::executeScriptAndReturnValue(v8::Handle<v8 |
v8::TryCatch tryCatch; |
tryCatch.SetVerbose(true); |
- v8::Handle<v8::Script> script = V8ScriptRunner::compileScript(source, m_isolate, corsStatus); |
+ v8::Handle<v8::Script> script = V8ScriptRunner::compileScript(source, m_isolate, corsStatus, v8CacheOptions); |
// Keep LocalFrame (and therefore ScriptController) alive. |
RefPtr<LocalFrame> protect(m_frame); |