| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef V8_OBJECTS_VISITING_INL_H_ | 5 #ifndef V8_OBJECTS_VISITING_INL_H_ |
| 6 #define V8_OBJECTS_VISITING_INL_H_ | 6 #define V8_OBJECTS_VISITING_INL_H_ |
| 7 | 7 |
| 8 #include "src/heap/objects-visiting.h" | 8 #include "src/heap/objects-visiting.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 } | 488 } |
| 489 } | 489 } |
| 490 VisitJSFunctionStrongCode(heap, object); | 490 VisitJSFunctionStrongCode(heap, object); |
| 491 } | 491 } |
| 492 | 492 |
| 493 | 493 |
| 494 template <typename StaticVisitor> | 494 template <typename StaticVisitor> |
| 495 void StaticMarkingVisitor<StaticVisitor>::VisitJSRegExp(Map* map, | 495 void StaticMarkingVisitor<StaticVisitor>::VisitJSRegExp(Map* map, |
| 496 HeapObject* object) { | 496 HeapObject* object) { |
| 497 int last_property_offset = | 497 int last_property_offset = |
| 498 JSRegExp::kSize + kPointerSize * map->inobject_properties(); | 498 JSRegExp::kSize + kPointerSize * map->GetInObjectProperties(); |
| 499 StaticVisitor::VisitPointers( | 499 StaticVisitor::VisitPointers( |
| 500 map->GetHeap(), object, | 500 map->GetHeap(), object, |
| 501 HeapObject::RawField(object, JSRegExp::kPropertiesOffset), | 501 HeapObject::RawField(object, JSRegExp::kPropertiesOffset), |
| 502 HeapObject::RawField(object, last_property_offset)); | 502 HeapObject::RawField(object, last_property_offset)); |
| 503 } | 503 } |
| 504 | 504 |
| 505 | 505 |
| 506 template <typename StaticVisitor> | 506 template <typename StaticVisitor> |
| 507 void StaticMarkingVisitor<StaticVisitor>::VisitJSArrayBuffer( | 507 void StaticMarkingVisitor<StaticVisitor>::VisitJSArrayBuffer( |
| 508 Map* map, HeapObject* object) { | 508 Map* map, HeapObject* object) { |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 | 862 |
| 863 RelocIterator it(this, mode_mask); | 863 RelocIterator it(this, mode_mask); |
| 864 for (; !it.done(); it.next()) { | 864 for (; !it.done(); it.next()) { |
| 865 it.rinfo()->template Visit<StaticVisitor>(heap); | 865 it.rinfo()->template Visit<StaticVisitor>(heap); |
| 866 } | 866 } |
| 867 } | 867 } |
| 868 } | 868 } |
| 869 } // namespace v8::internal | 869 } // namespace v8::internal |
| 870 | 870 |
| 871 #endif // V8_OBJECTS_VISITING_INL_H_ | 871 #endif // V8_OBJECTS_VISITING_INL_H_ |
| OLD | NEW |