diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2009-12-18 15:05:04 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-12-18 15:05:04 +0100 |
commit | 20b945df706b2b9fcbc1a84230372d288d497544 (patch) | |
tree | 0c60abd605dfb4452ba1e866b2bd075f1bd929ef /deps/v8/src/scopes.h | |
parent | 164ce76e941490e82230e905e719b5b556b669f5 (diff) | |
download | node-new-20b945df706b2b9fcbc1a84230372d288d497544.tar.gz |
Upgrade V8 to 2.0.5
Diffstat (limited to 'deps/v8/src/scopes.h')
-rw-r--r-- | deps/v8/src/scopes.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/deps/v8/src/scopes.h b/deps/v8/src/scopes.h index fc627df619..9b506d989e 100644 --- a/deps/v8/src/scopes.h +++ b/deps/v8/src/scopes.h @@ -206,8 +206,13 @@ class Scope: public ZoneObject { // --------------------------------------------------------------------------- // Accessors. - // The variable corresponding to the (function) receiver. - VariableProxy* receiver() const { return receiver_; } + // A new variable proxy corresponding to the (function) receiver. + VariableProxy* receiver() const { + VariableProxy* proxy = + new VariableProxy(Factory::this_symbol(), true, false); + proxy->BindTo(receiver_); + return proxy; + } // The variable holding the function literal for named function // literals, or NULL. @@ -314,7 +319,7 @@ class Scope: public ZoneObject { // Declarations. ZoneList<Declaration*> decls_; // Convenience variable. - VariableProxy* receiver_; + Variable* receiver_; // Function variable, if any; function scopes only. Variable* function_; // Convenience variable; function scopes only. |