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

Side by Side Diff: src/objects.cc

Issue 1292753007: [es6] Parameter scopes for sloppy eval (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comments Created 5 years, 4 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 | « src/objects.h ('k') | src/objects-debug.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 5346 matching lines...) Expand 10 before | Expand all | Expand 10 after
5357 return true; 5357 return true;
5358 } 5358 }
5359 } else if (ctxobj == obj) { 5359 } else if (ctxobj == obj) {
5360 return true; 5360 return true;
5361 } 5361 }
5362 } 5362 }
5363 } 5363 }
5364 5364
5365 // Check the context extension (if any) if it can have references. 5365 // Check the context extension (if any) if it can have references.
5366 if (context->has_extension() && !context->IsCatchContext()) { 5366 if (context->has_extension() && !context->IsCatchContext()) {
5367 // With harmony scoping, a JSFunction may have a global context. 5367 // With harmony scoping, a JSFunction may have a script context.
5368 // TODO(mvstanton): walk into the ScopeInfo. 5368 // TODO(mvstanton): walk into the ScopeInfo.
5369 if (context->IsScriptContext()) { 5369 if (context->IsScriptContext()) {
5370 return false; 5370 return false;
5371 } 5371 }
5372 5372
5373 return JSObject::cast(context->extension())->ReferencesObject(obj); 5373 return context->extension_object()->ReferencesObject(obj);
5374 } 5374 }
5375 } 5375 }
5376 5376
5377 // No references to object. 5377 // No references to object.
5378 return false; 5378 return false;
5379 } 5379 }
5380 5380
5381 5381
5382 MaybeHandle<Object> JSObject::PreventExtensions(Handle<JSObject> object) { 5382 MaybeHandle<Object> JSObject::PreventExtensions(Handle<JSObject> object) {
5383 if (!object->map()->is_extensible()) return object; 5383 if (!object->map()->is_extensible()) return object;
(...skipping 10316 matching lines...) Expand 10 before | Expand all | Expand 10 after
15700 if (cell->value() != *new_value) { 15700 if (cell->value() != *new_value) {
15701 cell->set_value(*new_value); 15701 cell->set_value(*new_value);
15702 Isolate* isolate = cell->GetIsolate(); 15702 Isolate* isolate = cell->GetIsolate();
15703 cell->dependent_code()->DeoptimizeDependentCodeGroup( 15703 cell->dependent_code()->DeoptimizeDependentCodeGroup(
15704 isolate, DependentCode::kPropertyCellChangedGroup); 15704 isolate, DependentCode::kPropertyCellChangedGroup);
15705 } 15705 }
15706 } 15706 }
15707 15707
15708 } // namespace internal 15708 } // namespace internal
15709 } // namespace v8 15709 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698