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

Side by Side Diff: src/objects.cc

Issue 716833002: Various clean-ups after top-level lexical declarations are done. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch for landing Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/accessors.h" 9 #include "src/accessors.h"
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 5283 matching lines...) Expand 10 before | Expand all | Expand 10 after
5294 } else if (ctxobj == obj) { 5294 } else if (ctxobj == obj) {
5295 return true; 5295 return true;
5296 } 5296 }
5297 } 5297 }
5298 } 5298 }
5299 5299
5300 // Check the context extension (if any) if it can have references. 5300 // Check the context extension (if any) if it can have references.
5301 if (context->has_extension() && !context->IsCatchContext()) { 5301 if (context->has_extension() && !context->IsCatchContext()) {
5302 // With harmony scoping, a JSFunction may have a global context. 5302 // With harmony scoping, a JSFunction may have a global context.
5303 // TODO(mvstanton): walk into the ScopeInfo. 5303 // TODO(mvstanton): walk into the ScopeInfo.
5304 if (FLAG_harmony_scoping && context->IsGlobalContext()) { 5304 if (FLAG_harmony_scoping && context->IsScriptContext()) {
5305 return false; 5305 return false;
5306 } 5306 }
5307 5307
5308 return JSObject::cast(context->extension())->ReferencesObject(obj); 5308 return JSObject::cast(context->extension())->ReferencesObject(obj);
5309 } 5309 }
5310 } 5310 }
5311 5311
5312 // No references to object. 5312 // No references to object.
5313 return false; 5313 return false;
5314 } 5314 }
(...skipping 11461 matching lines...) Expand 10 before | Expand all | Expand 10 after
16776 Handle<DependentCode> codes = 16776 Handle<DependentCode> codes =
16777 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), 16777 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()),
16778 DependentCode::kPropertyCellChangedGroup, 16778 DependentCode::kPropertyCellChangedGroup,
16779 info->object_wrapper()); 16779 info->object_wrapper());
16780 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 16780 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
16781 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 16781 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
16782 cell, info->zone()); 16782 cell, info->zone());
16783 } 16783 }
16784 16784
16785 } } // namespace v8::internal 16785 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698