diff options
author | Ryan <ry@tinyclouds.org> | 2009-08-19 16:37:15 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-08-19 16:37:15 +0200 |
commit | 0cec74d03dc6a1735e731fe06056a1731e14c0df (patch) | |
tree | 9606bcb9afeba305a7b2a1ac4c518ded63a25d89 /deps/v8/src/scopes.h | |
parent | b590a45849307f5544b7a95854f45064527105ad (diff) | |
download | node-new-0cec74d03dc6a1735e731fe06056a1731e14c0df.tar.gz |
Upgrade v8 to 1.3.5
Diffstat (limited to 'deps/v8/src/scopes.h')
-rw-r--r-- | deps/v8/src/scopes.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/src/scopes.h b/deps/v8/src/scopes.h index 5767d9f017..fc627df619 100644 --- a/deps/v8/src/scopes.h +++ b/deps/v8/src/scopes.h @@ -93,7 +93,6 @@ class Scope: public ZoneObject { GLOBAL_SCOPE // the top-level scope for a program or a top-level eval }; - Scope(); Scope(Scope* outer_scope, Type type); virtual ~Scope() { } @@ -130,7 +129,7 @@ class Scope: public ZoneObject { Variable* DeclareGlobal(Handle<String> name); // Add a parameter to the parameter list. The parameter must have been - // declared via Declare. The same parameter may occur more then once in + // declared via Declare. The same parameter may occur more than once in // the parameter list; they must be added in source order, from left to // right. void AddParameter(Variable* var); @@ -286,6 +285,8 @@ class Scope: public ZoneObject { protected: friend class ParserFactory; + explicit Scope(Type type); + // Scope tree. Scope* outer_scope_; // the immediately enclosing outer scope, or NULL ZoneList<Scope*> inner_scopes_; // the immediately enclosed inner scopes @@ -375,7 +376,7 @@ class Scope: public ZoneObject { class DummyScope : public Scope { public: - DummyScope() { + DummyScope() : Scope(GLOBAL_SCOPE) { outer_scope_ = this; } |