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

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

Issue 9403009: Count ICs that have type information. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix confusing --trace-opt output Created 8 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 RelocInfo::ModeMask(RelocInfo::EXTERNAL_REFERENCE) | 102 RelocInfo::ModeMask(RelocInfo::EXTERNAL_REFERENCE) |
103 RelocInfo::ModeMask(RelocInfo::JS_RETURN) | 103 RelocInfo::ModeMask(RelocInfo::JS_RETURN) |
104 RelocInfo::ModeMask(RelocInfo::DEBUG_BREAK_SLOT) | 104 RelocInfo::ModeMask(RelocInfo::DEBUG_BREAK_SLOT) |
105 RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); 105 RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY);
106 106
107 // There are two places where we iterate code bodies: here and the 107 // There are two places where we iterate code bodies: here and the
108 // templated CodeIterateBody (below). They should be kept in sync. 108 // templated CodeIterateBody (below). They should be kept in sync.
109 IteratePointer(v, kRelocationInfoOffset); 109 IteratePointer(v, kRelocationInfoOffset);
110 IteratePointer(v, kHandlerTableOffset); 110 IteratePointer(v, kHandlerTableOffset);
111 IteratePointer(v, kDeoptimizationDataOffset); 111 IteratePointer(v, kDeoptimizationDataOffset);
112 IteratePointer(v, kTypeFeedbackCellsOffset); 112 IteratePointer(v, kTypeFeedbackInfoOffset);
113 113
114 RelocIterator it(this, mode_mask); 114 RelocIterator it(this, mode_mask);
115 for (; !it.done(); it.next()) { 115 for (; !it.done(); it.next()) {
116 it.rinfo()->Visit(v); 116 it.rinfo()->Visit(v);
117 } 117 }
118 } 118 }
119 119
120 120
121 template<typename StaticVisitor> 121 template<typename StaticVisitor>
122 void Code::CodeIterateBody(Heap* heap) { 122 void Code::CodeIterateBody(Heap* heap) {
(...skipping 11 matching lines...) Expand all
134 heap, 134 heap,
135 reinterpret_cast<Object**>(this->address() + kRelocationInfoOffset)); 135 reinterpret_cast<Object**>(this->address() + kRelocationInfoOffset));
136 StaticVisitor::VisitPointer( 136 StaticVisitor::VisitPointer(
137 heap, 137 heap,
138 reinterpret_cast<Object**>(this->address() + kHandlerTableOffset)); 138 reinterpret_cast<Object**>(this->address() + kHandlerTableOffset));
139 StaticVisitor::VisitPointer( 139 StaticVisitor::VisitPointer(
140 heap, 140 heap,
141 reinterpret_cast<Object**>(this->address() + kDeoptimizationDataOffset)); 141 reinterpret_cast<Object**>(this->address() + kDeoptimizationDataOffset));
142 StaticVisitor::VisitPointer( 142 StaticVisitor::VisitPointer(
143 heap, 143 heap,
144 reinterpret_cast<Object**>(this->address() + kTypeFeedbackCellsOffset)); 144 reinterpret_cast<Object**>(this->address() + kTypeFeedbackInfoOffset));
145 145
146 RelocIterator it(this, mode_mask); 146 RelocIterator it(this, mode_mask);
147 for (; !it.done(); it.next()) { 147 for (; !it.done(); it.next()) {
148 it.rinfo()->template Visit<StaticVisitor>(heap); 148 it.rinfo()->template Visit<StaticVisitor>(heap);
149 } 149 }
150 } 150 }
151 151
152 152
153 } } // namespace v8::internal 153 } } // namespace v8::internal
154 154
155 #endif // V8_OBJECTS_VISITING_INL_H_ 155 #endif // V8_OBJECTS_VISITING_INL_H_
OLDNEW
« src/objects-inl.h ('K') | « src/objects-printer.cc ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698