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

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: 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
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 <iomanip> 5 #include <iomanip>
6 #include <sstream> 6 #include <sstream>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
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 10333 matching lines...) Expand 10 before | Expand all | Expand 10 after
15717 if (cell->value() != *new_value) { 15717 if (cell->value() != *new_value) {
15718 cell->set_value(*new_value); 15718 cell->set_value(*new_value);
15719 Isolate* isolate = cell->GetIsolate(); 15719 Isolate* isolate = cell->GetIsolate();
15720 cell->dependent_code()->DeoptimizeDependentCodeGroup( 15720 cell->dependent_code()->DeoptimizeDependentCodeGroup(
15721 isolate, DependentCode::kPropertyCellChangedGroup); 15721 isolate, DependentCode::kPropertyCellChangedGroup);
15722 } 15722 }
15723 } 15723 }
15724 15724
15725 } // namespace internal 15725 } // namespace internal
15726 } // namespace v8 15726 } // namespace v8
OLDNEW
« src/contexts.cc ('K') | « src/objects.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698