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 10736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10747 | 10747 |
10748 | 10748 |
10749 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) { | 10749 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) { |
10750 DCHECK(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); | 10750 DCHECK(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); |
10751 Object* p = rinfo->target_object(); | 10751 Object* p = rinfo->target_object(); |
10752 VisitPointer(&p); | 10752 VisitPointer(&p); |
10753 } | 10753 } |
10754 | 10754 |
10755 | 10755 |
10756 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { | 10756 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { |
10757 Address p = rinfo->target_reference(); | 10757 Address p = rinfo->target_external_reference(); |
10758 VisitExternalReference(&p); | 10758 VisitExternalReference(&p); |
10759 } | 10759 } |
10760 | 10760 |
10761 | 10761 |
10762 void Code::InvalidateRelocation() { | 10762 void Code::InvalidateRelocation() { |
10763 InvalidateEmbeddedObjects(); | 10763 InvalidateEmbeddedObjects(); |
10764 set_relocation_info(GetHeap()->empty_byte_array()); | 10764 set_relocation_info(GetHeap()->empty_byte_array()); |
10765 } | 10765 } |
10766 | 10766 |
10767 | 10767 |
(...skipping 6398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17166 CompilationInfo* info) { | 17166 CompilationInfo* info) { |
17167 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( | 17167 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( |
17168 handle(cell->dependent_code(), info->isolate()), | 17168 handle(cell->dependent_code(), info->isolate()), |
17169 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); | 17169 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); |
17170 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); | 17170 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); |
17171 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( | 17171 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( |
17172 cell, info->zone()); | 17172 cell, info->zone()); |
17173 } | 17173 } |
17174 | 17174 |
17175 } } // namespace v8::internal | 17175 } } // namespace v8::internal |
OLD | NEW |