| 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 <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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |