From e46be819fca9468a0cd4e74859ce0f778eb8ca60 Mon Sep 17 00:00:00 2001 From: Leon Clarke Date: Tue, 19 Jan 2010 14:06:41 +0000 Subject: New version of v8 from bleeding edge at revision 3649 --- src/scopes.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/scopes.cc') diff --git a/src/scopes.cc b/src/scopes.cc index 7da06cdb..701e5e3e 100644 --- a/src/scopes.cc +++ b/src/scopes.cc @@ -189,8 +189,7 @@ void Scope::Initialize(bool inside_with) { variables_.Declare(this, Factory::this_symbol(), Variable::VAR, false, Variable::THIS); var->rewrite_ = new Slot(var, Slot::PARAMETER, -1); - receiver_ = new VariableProxy(Factory::this_symbol(), true, false); - receiver_->BindTo(var); + receiver_ = var; if (is_function_scope()) { // Declare 'arguments' variable which exists in all functions. @@ -237,7 +236,7 @@ Variable* Scope::DeclareLocal(Handle name, Variable::Mode mode) { Variable* Scope::DeclareGlobal(Handle name) { ASSERT(is_global_scope()); - return variables_.Declare(this, name, Variable::DYNAMIC, true, + return variables_.Declare(this, name, Variable::DYNAMIC_GLOBAL, true, Variable::NORMAL); } -- cgit v1.2.3