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

Unified Diff: src/codegen-inl.h

Issue 6286043: Direct call to eval passes strict mode through. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Extra argument to Resolve*Eval* Created 9 years, 11 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/codegen-inl.h
diff --git a/src/codegen-inl.h b/src/codegen-inl.h
index 6534e7fd63fa441c7d16d0bb07d3c47b0c6eefdf..21b28aec8082389018139471ad4b7ecef177c8a1 100644
--- a/src/codegen-inl.h
+++ b/src/codegen-inl.h
@@ -53,6 +53,8 @@ Handle<Script> CodeGenerator::script() { return info_->script(); }
bool CodeGenerator::is_eval() { return info_->is_eval(); }
+bool CodeGenerator::is_strict() { return info_->function()->strict_mode(); }
+
Scope* CodeGenerator::scope() { return info_->function()->scope(); }
} } // namespace v8::internal
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/compilation-cache.h » ('j') | src/compilation-cache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698