Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: src/compiler.cc

Issue 6814012: Strict mode fixes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()) {

Powered by Google App Engine
This is Rietveld 408576698