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

Side by Side Diff: third_party/WebKit/Source/platform/PODIntervalTree.h

Issue 2517993003: Convert one more CFI blacklist entry into DISABLE_CFI_PERF attribute. (Closed)
Patch Set: Created 4 years 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 | « no previous file | tools/cfi/blacklist.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void init() { 139 void init() {
140 // Explicit dereference of "this" required because of 140 // Explicit dereference of "this" required because of
141 // inheritance rules in template classes. 141 // inheritance rules in template classes.
142 this->setNeedsFullOrderingComparisons(true); 142 this->setNeedsFullOrderingComparisons(true);
143 } 143 }
144 144
145 // Starting from the given node, adds all overlaps with the given 145 // Starting from the given node, adds all overlaps with the given
146 // interval to the result vector. The intervals are sorted by 146 // interval to the result vector. The intervals are sorted by
147 // increasing low endpoint. 147 // increasing low endpoint.
148 template <class AdapterType> 148 template <class AdapterType>
149 void searchForOverlapsFrom(IntervalNode* node, AdapterType& adapter) const { 149 DISABLE_CFI_PERF void searchForOverlapsFrom(IntervalNode* node,
150 AdapterType& adapter) const {
150 if (!node) 151 if (!node)
151 return; 152 return;
152 153
153 // Because the intervals are sorted by left endpoint, inorder 154 // Because the intervals are sorted by left endpoint, inorder
154 // traversal produces results sorted as desired. 155 // traversal produces results sorted as desired.
155 156
156 // See whether we need to traverse the left subtree. 157 // See whether we need to traverse the left subtree.
157 IntervalNode* left = node->left(); 158 IntervalNode* left = node->left();
158 if (left 159 if (left
159 // This is phrased this way to avoid the need for operator 160 // This is phrased this way to avoid the need for operator
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 struct ValueToString<PODInterval<T, UserData>> { 248 struct ValueToString<PODInterval<T, UserData>> {
248 static String toString(const PODInterval<T, UserData>& interval) { 249 static String toString(const PODInterval<T, UserData>& interval) {
249 return interval.toString(); 250 return interval.toString();
250 } 251 }
251 }; 252 };
252 #endif 253 #endif
253 254
254 } // namespace blink 255 } // namespace blink
255 256
256 #endif // PODIntervalTree_h 257 #endif // PODIntervalTree_h
OLDNEW
« no previous file with comments | « no previous file | tools/cfi/blacklist.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698