diff options
Diffstat (limited to 'deps/v8/src/ast-inl.h')
-rw-r--r-- | deps/v8/src/ast-inl.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/deps/v8/src/ast-inl.h b/deps/v8/src/ast-inl.h index eb81c3a839..c2bd613444 100644 --- a/deps/v8/src/ast-inl.h +++ b/deps/v8/src/ast-inl.h @@ -1,4 +1,4 @@ -// Copyright 2010 the V8 project authors. All rights reserved. +// Copyright 2011 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: @@ -31,7 +31,7 @@ #include "v8.h" #include "ast.h" -#include "jump-target-inl.h" +#include "scopes.h" namespace v8 { namespace internal { @@ -62,7 +62,7 @@ BreakableStatement::BreakableStatement(ZoneStringList* labels, Type type) IterationStatement::IterationStatement(ZoneStringList* labels) : BreakableStatement(labels, TARGET_FOR_ANONYMOUS), body_(NULL), - continue_target_(JumpTarget::BIDIRECTIONAL), + continue_target_(), osr_entry_id_(GetNextId()) { } @@ -102,6 +102,11 @@ ForInStatement::ForInStatement(ZoneStringList* labels) } +bool FunctionLiteral::strict_mode() const { + return scope()->is_strict_mode(); +} + + } } // namespace v8::internal #endif // V8_AST_INL_H_ |