| OLD | NEW |
| 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 Loading... |
| 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 11453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16768 Handle<DependentCode> codes = | 16768 Handle<DependentCode> codes = |
| 16769 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), | 16769 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), |
| 16770 DependentCode::kPropertyCellChangedGroup, | 16770 DependentCode::kPropertyCellChangedGroup, |
| 16771 info->object_wrapper()); | 16771 info->object_wrapper()); |
| 16772 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); | 16772 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); |
| 16773 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( | 16773 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( |
| 16774 cell, info->zone()); | 16774 cell, info->zone()); |
| 16775 } | 16775 } |
| 16776 | 16776 |
| 16777 } } // namespace v8::internal | 16777 } } // namespace v8::internal |
| OLD | NEW |