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

Unified Diff: src/ast.h

Issue 8417035: Introduce extended mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased version. Created 9 years, 1 month 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
« no previous file with comments | « src/accessors.cc ('k') | src/ast-inl.h » ('j') | src/compiler.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 295257aaebdeb4a0b716af0f604930062d8c80d5..b1a40ff9e79456e692c05d7526b05745020aeedf 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -1631,8 +1631,9 @@ class FunctionLiteral: public Expression {
int end_position() const;
bool is_expression() const { return is_expression_; }
bool is_anonymous() const { return is_anonymous_; }
- bool strict_mode() const { return strict_mode_flag() == kStrictMode; }
- StrictModeFlag strict_mode_flag() const;
+ bool is_classic_mode() const { return language_mode() == CLASSIC_MODE; }
+ bool is_strict_or_extended_mode() const { return !is_classic_mode(); }
rossberg 2011/11/08 15:02:46 I forgot what exactly we concluded earlier, but th
Steven 2011/11/08 16:13:49 Done.
+ LanguageMode language_mode() const;
int materialized_literal_count() { return materialized_literal_count_; }
int expected_property_count() { return expected_property_count_; }
« no previous file with comments | « src/accessors.cc ('k') | src/ast-inl.h » ('j') | src/compiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698