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 6643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6654 | 6654 |
6655 // Installs optimized code from the code map on the given closure. The | 6655 // Installs optimized code from the code map on the given closure. The |
6656 // index has to be consistent with a search result as defined above. | 6656 // index has to be consistent with a search result as defined above. |
6657 FixedArray* GetLiteralsFromOptimizedCodeMap(int index); | 6657 FixedArray* GetLiteralsFromOptimizedCodeMap(int index); |
6658 | 6658 |
6659 Code* GetCodeFromOptimizedCodeMap(int index); | 6659 Code* GetCodeFromOptimizedCodeMap(int index); |
6660 | 6660 |
6661 // Clear optimized code map. | 6661 // Clear optimized code map. |
6662 void ClearOptimizedCodeMap(); | 6662 void ClearOptimizedCodeMap(); |
6663 | 6663 |
6664 // Removed a specific optimized code object from the optimized code map. | 6664 // Removed code objects associated to the given native context from |
6665 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason); | 6665 // the optimized code map. |
| 6666 void EvictFromOptimizedCodeMap(Context* context, const char* reason); |
6666 | 6667 |
6667 // Trims the optimized code map after entries have been removed. | 6668 // Trims the optimized code map after entries have been removed. |
6668 void TrimOptimizedCodeMap(int shrink_by); | 6669 void TrimOptimizedCodeMap(int shrink_by); |
6669 | 6670 |
6670 // Add a new entry to the optimized code map. | 6671 // Add a new entry to the optimized code map. |
6671 MUST_USE_RESULT MaybeObject* AddToOptimizedCodeMap(Context* native_context, | 6672 MUST_USE_RESULT MaybeObject* AddToOptimizedCodeMap(Context* native_context, |
6672 Code* code, | 6673 Code* code, |
6673 FixedArray* literals, | 6674 FixedArray* literals, |
6674 BailoutId osr_ast_id); | 6675 BailoutId osr_ast_id); |
6675 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, | 6676 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, |
(...skipping 4098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10774 } else { | 10775 } else { |
10775 value &= ~(1 << bit_position); | 10776 value &= ~(1 << bit_position); |
10776 } | 10777 } |
10777 return value; | 10778 return value; |
10778 } | 10779 } |
10779 }; | 10780 }; |
10780 | 10781 |
10781 } } // namespace v8::internal | 10782 } } // namespace v8::internal |
10782 | 10783 |
10783 #endif // V8_OBJECTS_H_ | 10784 #endif // V8_OBJECTS_H_ |
OLD | NEW |