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

Side by Side Diff: src/heap/objects-visiting-inl.h

Issue 1276533003: [runtime] Store constructor function index on primitive maps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm failures Created 5 years, 4 months 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
« no previous file with comments | « src/heap/heap.cc ('k') | src/hydrogen.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 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
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
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_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698