| Index: src/debug/debug-evaluate.cc
|
| diff --git a/src/debug/debug-evaluate.cc b/src/debug/debug-evaluate.cc
|
| index dceaee14261301584ff8e8818e5bece407f33e25..1729408e5ce0c644efb99213e39de0a425067b99 100644
|
| --- a/src/debug/debug-evaluate.cc
|
| +++ b/src/debug/debug-evaluate.cc
|
| @@ -154,7 +154,7 @@ DebugEvaluate::ContextBuilder::ContextBuilder(Isolate* isolate,
|
| ScopeIterator::ScopeType scope_type = it.Type();
|
| if (scope_type == ScopeIterator::ScopeTypeLocal) {
|
| DCHECK_EQ(FUNCTION_SCOPE, it.CurrentScopeInfo()->scope_type());
|
| - Handle<JSObject> materialized = NewJSObjectWithNullProto();
|
| + Handle<JSObject> materialized = factory->NewJSObjectWithNullProto();
|
| Handle<Context> local_context =
|
| it.HasContext() ? it.CurrentContext() : outer_context;
|
| Handle<StringSet> non_locals = it.GetNonLocals();
|
| @@ -183,7 +183,7 @@ DebugEvaluate::ContextBuilder::ContextBuilder(Isolate* isolate,
|
| }
|
| context_chain_.Add(context_chain_element);
|
| } else if (scope_type == ScopeIterator::ScopeTypeBlock) {
|
| - Handle<JSObject> materialized = NewJSObjectWithNullProto();
|
| + Handle<JSObject> materialized = factory->NewJSObjectWithNullProto();
|
| frame_inspector.MaterializeStackLocals(materialized,
|
| it.CurrentScopeInfo());
|
| ContextChainElement context_chain_element;
|
| @@ -220,17 +220,6 @@ void DebugEvaluate::ContextBuilder::UpdateValues() {
|
| }
|
|
|
|
|
| -Handle<JSObject> DebugEvaluate::ContextBuilder::NewJSObjectWithNullProto() {
|
| - Handle<JSObject> result =
|
| - isolate_->factory()->NewJSObject(isolate_->object_function());
|
| - Handle<Map> new_map =
|
| - Map::Copy(Handle<Map>(result->map()), "ObjectWithNullProto");
|
| - Map::SetPrototype(new_map, isolate_->factory()->null_value());
|
| - JSObject::MigrateToMap(result, new_map);
|
| - return result;
|
| -}
|
| -
|
| -
|
| void DebugEvaluate::ContextBuilder::MaterializeArgumentsObject(
|
| Handle<JSObject> target, Handle<JSFunction> function) {
|
| // Do not materialize the arguments object for eval or top-level code.
|
|
|