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

Side by Side Diff: src/objects.cc

Issue 1007783002: Remove --harmony-scoping flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: CR feedback Created 5 years, 9 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/mips64/full-codegen-mips64.cc ('k') | src/parser.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 <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 5584 matching lines...) Expand 10 before | Expand all | Expand 10 after
5595 } else if (ctxobj == obj) { 5595 } else if (ctxobj == obj) {
5596 return true; 5596 return true;
5597 } 5597 }
5598 } 5598 }
5599 } 5599 }
5600 5600
5601 // Check the context extension (if any) if it can have references. 5601 // Check the context extension (if any) if it can have references.
5602 if (context->has_extension() && !context->IsCatchContext()) { 5602 if (context->has_extension() && !context->IsCatchContext()) {
5603 // With harmony scoping, a JSFunction may have a global context. 5603 // With harmony scoping, a JSFunction may have a global context.
5604 // TODO(mvstanton): walk into the ScopeInfo. 5604 // TODO(mvstanton): walk into the ScopeInfo.
5605 if (FLAG_harmony_scoping && context->IsScriptContext()) { 5605 if (context->IsScriptContext()) {
5606 return false; 5606 return false;
5607 } 5607 }
5608 5608
5609 return JSObject::cast(context->extension())->ReferencesObject(obj); 5609 return JSObject::cast(context->extension())->ReferencesObject(obj);
5610 } 5610 }
5611 } 5611 }
5612 5612
5613 // No references to object. 5613 // No references to object.
5614 return false; 5614 return false;
5615 } 5615 }
(...skipping 11513 matching lines...) Expand 10 before | Expand all | Expand 10 after
17129 CompilationInfo* info) { 17129 CompilationInfo* info) {
17130 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( 17130 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo(
17131 handle(cell->dependent_code(), info->isolate()), 17131 handle(cell->dependent_code(), info->isolate()),
17132 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); 17132 DependentCode::kPropertyCellChangedGroup, info->object_wrapper());
17133 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 17133 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
17134 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 17134 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
17135 cell, info->zone()); 17135 cell, info->zone());
17136 } 17136 }
17137 17137
17138 } } // namespace v8::internal 17138 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698