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

Side by Side Diff: src/objects.h

Issue 10546122: Force inlining of some hot functions (problem reported by Bert Belder). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 6 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 | « no previous file | no next file » | 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 2556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 2567
2568 // Sort the instance descriptors by the hash codes of their keys. 2568 // Sort the instance descriptors by the hash codes of their keys.
2569 // Does not check for duplicates. 2569 // Does not check for duplicates.
2570 void SortUnchecked(const WhitenessWitness&); 2570 void SortUnchecked(const WhitenessWitness&);
2571 2571
2572 // Sort the instance descriptors by the hash codes of their keys. 2572 // Sort the instance descriptors by the hash codes of their keys.
2573 // Checks the result for duplicates. 2573 // Checks the result for duplicates.
2574 void Sort(const WhitenessWitness&); 2574 void Sort(const WhitenessWitness&);
2575 2575
2576 // Search the instance descriptors for given name. 2576 // Search the instance descriptors for given name.
2577 inline int Search(String* name); 2577 INLINE(int Search(String* name));
2578 2578
2579 // As the above, but uses DescriptorLookupCache and updates it when 2579 // As the above, but uses DescriptorLookupCache and updates it when
2580 // necessary. 2580 // necessary.
2581 inline int SearchWithCache(String* name); 2581 INLINE(int SearchWithCache(String* name));
2582 2582
2583 // Tells whether the name is present int the array. 2583 // Tells whether the name is present int the array.
2584 bool Contains(String* name) { return kNotFound != Search(name); } 2584 bool Contains(String* name) { return kNotFound != Search(name); }
2585 2585
2586 // Perform a binary search in the instance descriptors represented 2586 // Perform a binary search in the instance descriptors represented
2587 // by this fixed array. low and high are descriptor indices. If there 2587 // by this fixed array. low and high are descriptor indices. If there
2588 // are three instance descriptors in this array it should be called 2588 // are three instance descriptors in this array it should be called
2589 // with low=0 and high=2. 2589 // with low=0 and high=2.
2590 int BinarySearch(String* name, int low, int high); 2590 int BinarySearch(String* name, int low, int high);
2591 2591
(...skipping 6167 matching lines...) Expand 10 before | Expand all | Expand 10 after
8759 } else { 8759 } else {
8760 value &= ~(1 << bit_position); 8760 value &= ~(1 << bit_position);
8761 } 8761 }
8762 return value; 8762 return value;
8763 } 8763 }
8764 }; 8764 };
8765 8765
8766 } } // namespace v8::internal 8766 } } // namespace v8::internal
8767 8767
8768 #endif // V8_OBJECTS_H_ 8768 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698