Chromium Code Reviews| Index: src/compiler.cc |
| diff --git a/src/compiler.cc b/src/compiler.cc |
| index edb1853954c7935796bcf01196eca2ab0550d70b..5209e83ef75e10fd6e91ed4c22d3dc454cf9f9a1 100755 |
| --- a/src/compiler.cc |
| +++ b/src/compiler.cc |
| @@ -604,6 +604,12 @@ bool Compiler::CompileLazy(CompilationInfo* info) { |
| // parsing statistics. |
| HistogramTimerScope timer(isolate->counters()->compile_lazy()); |
|
Martin Maly
2011/04/07 10:07:07
Third fix. SharedFunctionInfo of lazy compiled fun
Lasse Reichstein
2011/04/08 12:54:18
The preparser should be able to detect this and st
Martin Maly
2011/04/08 14:27:39
Preparser doesn't yet detect strict mode. Once it
|
| + // After parsing we know function's strict mode. Remember it. |
| + if (info->function()->strict_mode()) { |
| + shared->set_strict_mode(true); |
| + info->MarkAsStrictMode(); |
| + } |
| + |
| // Compile the code. |
| if (!MakeCode(info)) { |
| if (!isolate->has_pending_exception()) { |