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

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

Issue 17895004: Add DependentCode to PropertyCells (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Moar review feedback Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/objects-visiting-inl.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // This is an example of Curiously recurring template pattern. 388 // This is an example of Curiously recurring template pattern.
389 template<typename StaticVisitor> 389 template<typename StaticVisitor>
390 class StaticMarkingVisitor : public StaticVisitorBase { 390 class StaticMarkingVisitor : public StaticVisitorBase {
391 public: 391 public:
392 static void Initialize(); 392 static void Initialize();
393 393
394 INLINE(static void IterateBody(Map* map, HeapObject* obj)) { 394 INLINE(static void IterateBody(Map* map, HeapObject* obj)) {
395 table_.GetVisitor(map)(map, obj); 395 table_.GetVisitor(map)(map, obj);
396 } 396 }
397 397
398 INLINE(static void VisitPropertyCell(Map* map, HeapObject* object));
398 INLINE(static void VisitCodeEntry(Heap* heap, Address entry_address)); 399 INLINE(static void VisitCodeEntry(Heap* heap, Address entry_address));
399 INLINE(static void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo)); 400 INLINE(static void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo));
400 INLINE(static void VisitCell(Heap* heap, RelocInfo* rinfo)); 401 INLINE(static void VisitCell(Heap* heap, RelocInfo* rinfo));
401 INLINE(static void VisitDebugTarget(Heap* heap, RelocInfo* rinfo)); 402 INLINE(static void VisitDebugTarget(Heap* heap, RelocInfo* rinfo));
402 INLINE(static void VisitCodeTarget(Heap* heap, RelocInfo* rinfo)); 403 INLINE(static void VisitCodeTarget(Heap* heap, RelocInfo* rinfo));
403 INLINE(static void VisitCodeAgeSequence(Heap* heap, RelocInfo* rinfo)); 404 INLINE(static void VisitCodeAgeSequence(Heap* heap, RelocInfo* rinfo));
404 INLINE(static void VisitExternalReference(RelocInfo* rinfo)) { } 405 INLINE(static void VisitExternalReference(RelocInfo* rinfo)) { }
405 INLINE(static void VisitRuntimeEntry(RelocInfo* rinfo)) { } 406 INLINE(static void VisitRuntimeEntry(RelocInfo* rinfo)) { }
406 407
407 // TODO(mstarzinger): This should be made protected once refactoring is done. 408 // TODO(mstarzinger): This should be made protected once refactoring is done.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 466
466 467
467 template<typename StaticVisitor> 468 template<typename StaticVisitor>
468 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> 469 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback>
469 StaticMarkingVisitor<StaticVisitor>::table_; 470 StaticMarkingVisitor<StaticVisitor>::table_;
470 471
471 472
472 } } // namespace v8::internal 473 } } // namespace v8::internal
473 474
474 #endif // V8_OBJECTS_VISITING_H_ 475 #endif // V8_OBJECTS_VISITING_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698