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

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

Issue 137403009: Adding a type vector to replace type cells. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed feedback. Created 6 years, 10 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-printer.cc ('k') | src/parser.cc » ('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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 HeapObject::RawField(object, AllocationSite::kPointerFieldsEndOffset)); 420 HeapObject::RawField(object, AllocationSite::kPointerFieldsEndOffset));
421 } 421 }
422 422
423 423
424 template<typename StaticVisitor> 424 template<typename StaticVisitor>
425 void StaticMarkingVisitor<StaticVisitor>::VisitCode( 425 void StaticMarkingVisitor<StaticVisitor>::VisitCode(
426 Map* map, HeapObject* object) { 426 Map* map, HeapObject* object) {
427 Heap* heap = map->GetHeap(); 427 Heap* heap = map->GetHeap();
428 Code* code = Code::cast(object); 428 Code* code = Code::cast(object);
429 if (FLAG_cleanup_code_caches_at_gc) { 429 if (FLAG_cleanup_code_caches_at_gc) {
430 code->ClearTypeFeedbackCells(heap); 430 code->ClearTypeFeedbackInfo(heap);
431 } 431 }
432 if (FLAG_age_code && !Serializer::enabled()) { 432 if (FLAG_age_code && !Serializer::enabled()) {
433 code->MakeOlder(heap->mark_compact_collector()->marking_parity()); 433 code->MakeOlder(heap->mark_compact_collector()->marking_parity());
434 } 434 }
435 code->CodeIterateBody<StaticVisitor>(heap); 435 code->CodeIterateBody<StaticVisitor>(heap);
436 } 436 }
437 437
438 438
439 template<typename StaticVisitor> 439 template<typename StaticVisitor>
440 void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo( 440 void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo(
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 RelocIterator it(this, mode_mask); 940 RelocIterator it(this, mode_mask);
941 for (; !it.done(); it.next()) { 941 for (; !it.done(); it.next()) {
942 it.rinfo()->template Visit<StaticVisitor>(heap); 942 it.rinfo()->template Visit<StaticVisitor>(heap);
943 } 943 }
944 } 944 }
945 945
946 946
947 } } // namespace v8::internal 947 } } // namespace v8::internal
948 948
949 #endif // V8_OBJECTS_VISITING_INL_H_ 949 #endif // V8_OBJECTS_VISITING_INL_H_
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698