diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-09-07 19:22:41 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-09-07 21:23:29 -0700 |
commit | 0bca54444a5bb869ddebaadc65cd0bf381bb1e81 (patch) | |
tree | 9c4ec90a663e0e17e9922d69bc58479bcd1538bd /deps/v8/src/contexts.cc | |
parent | 526c54c9790cd8edff259686785d7b844fd29005 (diff) | |
download | android-node-v8-0bca54444a5bb869ddebaadc65cd0bf381bb1e81.tar.gz android-node-v8-0bca54444a5bb869ddebaadc65cd0bf381bb1e81.tar.bz2 android-node-v8-0bca54444a5bb869ddebaadc65cd0bf381bb1e81.zip |
Upgrade V8 to 3.6.1
Diffstat (limited to 'deps/v8/src/contexts.cc')
-rw-r--r-- | deps/v8/src/contexts.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/deps/v8/src/contexts.cc b/deps/v8/src/contexts.cc index c0e724253f..4f93abdff1 100644 --- a/deps/v8/src/contexts.cc +++ b/deps/v8/src/contexts.cc @@ -87,13 +87,15 @@ void Context::set_global_proxy(JSObject* object) { Handle<Object> Context::Lookup(Handle<String> name, ContextLookupFlags flags, int* index_, - PropertyAttributes* attributes) { + PropertyAttributes* attributes, + BindingFlags* binding_flags) { Isolate* isolate = GetIsolate(); Handle<Context> context(this, isolate); bool follow_context_chain = (flags & FOLLOW_CONTEXT_CHAIN) != 0; *index_ = -1; *attributes = ABSENT; + *binding_flags = MISSING_BINDING; if (FLAG_trace_contexts) { PrintF("Context::Lookup("); @@ -118,6 +120,7 @@ Handle<Object> Context::Lookup(Handle<String> name, } *index_ = Context::THROWN_OBJECT_INDEX; *attributes = NONE; + *binding_flags = MUTABLE_IS_INITIALIZED; return context; } } else { @@ -180,11 +183,16 @@ Handle<Object> Context::Lookup(Handle<String> name, switch (mode) { case Variable::INTERNAL: // Fall through. case Variable::VAR: + *attributes = NONE; + *binding_flags = MUTABLE_IS_INITIALIZED; + break; case Variable::LET: *attributes = NONE; + *binding_flags = MUTABLE_CHECK_INITIALIZED; break; case Variable::CONST: *attributes = READ_ONLY; + *binding_flags = IMMUTABLE_CHECK_INITIALIZED; break; case Variable::DYNAMIC: case Variable::DYNAMIC_GLOBAL: @@ -207,6 +215,7 @@ Handle<Object> Context::Lookup(Handle<String> name, } *index_ = index; *attributes = READ_ONLY; + *binding_flags = IMMUTABLE_IS_INITIALIZED; return context; } } |