Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: src/debug/debug-evaluate.cc

Issue 2049973003: Version 5.1.281.64 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/v8-version.h ('k') | test/mjsunit/es6/debug-evaluate-receiver-before-super.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/debug/debug-evaluate.h" 5 #include "src/debug/debug-evaluate.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/contexts.h" 8 #include "src/contexts.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/debug/debug-frames.h" 10 #include "src/debug/debug-frames.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 void DebugEvaluate::ContextBuilder::MaterializeReceiver( 241 void DebugEvaluate::ContextBuilder::MaterializeReceiver(
242 Handle<JSObject> target, Handle<Context> local_context, 242 Handle<JSObject> target, Handle<Context> local_context,
243 Handle<JSFunction> local_function, Handle<StringSet> non_locals) { 243 Handle<JSFunction> local_function, Handle<StringSet> non_locals) {
244 Handle<Object> recv = isolate_->factory()->undefined_value(); 244 Handle<Object> recv = isolate_->factory()->undefined_value();
245 Handle<String> name = isolate_->factory()->this_string(); 245 Handle<String> name = isolate_->factory()->this_string();
246 if (non_locals->Has(name)) { 246 if (non_locals->Has(name)) {
247 // 'this' is allocated in an outer context and is is already being 247 // 'this' is allocated in an outer context and is is already being
248 // referenced by the current function, so it can be correctly resolved. 248 // referenced by the current function, so it can be correctly resolved.
249 return; 249 return;
250 } else if (local_function->shared()->scope_info()->HasReceiver()) { 250 } else if (local_function->shared()->scope_info()->HasReceiver() &&
251 !frame_->receiver()->IsTheHole()) {
251 recv = handle(frame_->receiver(), isolate_); 252 recv = handle(frame_->receiver(), isolate_);
252 } 253 }
253 JSObject::SetOwnPropertyIgnoreAttributes(target, name, recv, NONE).Check(); 254 JSObject::SetOwnPropertyIgnoreAttributes(target, name, recv, NONE).Check();
254 } 255 }
255 256
256 } // namespace internal 257 } // namespace internal
257 } // namespace v8 258 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | test/mjsunit/es6/debug-evaluate-receiver-before-super.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698