OLD | NEW |
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 5811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5822 | 5822 |
5823 // Clear optimized code map. | 5823 // Clear optimized code map. |
5824 void ClearOptimizedCodeMap(); | 5824 void ClearOptimizedCodeMap(); |
5825 | 5825 |
5826 // Removed a specific optimized code object from the optimized code map. | 5826 // Removed a specific optimized code object from the optimized code map. |
5827 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason); | 5827 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason); |
5828 | 5828 |
5829 // Trims the optimized code map after entries have been removed. | 5829 // Trims the optimized code map after entries have been removed. |
5830 void TrimOptimizedCodeMap(int shrink_by); | 5830 void TrimOptimizedCodeMap(int shrink_by); |
5831 | 5831 |
5832 // Zaps the contents of backing optimized code map. | |
5833 void ZapOptimizedCodeMap(); | |
5834 | |
5835 // Add a new entry to the optimized code map. | 5832 // Add a new entry to the optimized code map. |
5836 MUST_USE_RESULT MaybeObject* AddToOptimizedCodeMap(Context* native_context, | 5833 MUST_USE_RESULT MaybeObject* AddToOptimizedCodeMap(Context* native_context, |
5837 Code* code, | 5834 Code* code, |
5838 FixedArray* literals); | 5835 FixedArray* literals); |
5839 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, | 5836 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, |
5840 Handle<Context> native_context, | 5837 Handle<Context> native_context, |
5841 Handle<Code> code, | 5838 Handle<Code> code, |
5842 Handle<FixedArray> literals); | 5839 Handle<FixedArray> literals); |
5843 | 5840 |
5844 // Layout description of the optimized code map. | 5841 // Layout description of the optimized code map. |
(...skipping 3764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9609 } else { | 9606 } else { |
9610 value &= ~(1 << bit_position); | 9607 value &= ~(1 << bit_position); |
9611 } | 9608 } |
9612 return value; | 9609 return value; |
9613 } | 9610 } |
9614 }; | 9611 }; |
9615 | 9612 |
9616 } } // namespace v8::internal | 9613 } } // namespace v8::internal |
9617 | 9614 |
9618 #endif // V8_OBJECTS_H_ | 9615 #endif // V8_OBJECTS_H_ |
OLD | NEW |