Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 88510d521016eda450f3dd8c58faa2bcbdcc2ab3..52c907cbc015cdf7ba0fa049214ad5e8745e8ab9 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -532,6 +532,7 @@ Handle<SharedFunctionInfo> Compiler::Compile(Handle<String> source, |
Handle<Object> script_name, |
int line_offset, |
int column_offset, |
+ Handle<Context> context, |
v8::Extension* extension, |
ScriptDataImpl* pre_data, |
Handle<Object> script_data, |
@@ -552,7 +553,8 @@ Handle<SharedFunctionInfo> Compiler::Compile(Handle<String> source, |
result = compilation_cache->LookupScript(source, |
script_name, |
line_offset, |
- column_offset); |
+ column_offset, |
+ context); |
} |
if (result.is_null()) { |
@@ -589,7 +591,7 @@ Handle<SharedFunctionInfo> Compiler::Compile(Handle<String> source, |
} |
result = MakeFunctionInfo(&info); |
if (extension == NULL && !result.is_null() && !result->dont_cache()) { |
- compilation_cache->PutScript(source, result); |
+ compilation_cache->PutScript(source, context, result); |
} |
} else { |
if (result->ic_age() != HEAP->global_ic_age()) { |