 Chromium Code Reviews
 Chromium Code Reviews Issue 14604007:
  Only flush SharedFunctionInfo optimized code cache when necessary  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 14604007:
  Only flush SharedFunctionInfo optimized code cache when necessary  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| 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 5804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5815 // Returns -1 when no matching entry is found. | 5815 // Returns -1 when no matching entry is found. | 
| 5816 int SearchOptimizedCodeMap(Context* native_context); | 5816 int SearchOptimizedCodeMap(Context* native_context); | 
| 5817 | 5817 | 
| 5818 // Installs optimized code from the code map on the given closure. The | 5818 // Installs optimized code from the code map on the given closure. The | 
| 5819 // index has to be consistent with a search result as defined above. | 5819 // index has to be consistent with a search result as defined above. | 
| 5820 void InstallFromOptimizedCodeMap(JSFunction* function, int index); | 5820 void InstallFromOptimizedCodeMap(JSFunction* function, int index); | 
| 5821 | 5821 | 
| 5822 // Clear optimized code map. | 5822 // Clear optimized code map. | 
| 5823 void ClearOptimizedCodeMap(const char* reason); | 5823 void ClearOptimizedCodeMap(const char* reason); | 
| 5824 | 5824 | 
| 5825 // Removed a specific optimized code object from the optimized code map, or | |
| 5826 // all code objects if |optimized_code| is null. | |
| 
Michael Starzinger
2013/05/13 14:26:46
The second part of the comment is out-dated, let's
 
danno
2013/05/13 15:23:10
Done.
 | |
| 5827 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason); | |
| 5828 | |
| 5825 // Add a new entry to the optimized code map. | 5829 // Add a new entry to the optimized code map. | 
| 5826 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, | 5830 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, | 
| 5827 Handle<Context> native_context, | 5831 Handle<Context> native_context, | 
| 5828 Handle<Code> code, | 5832 Handle<Code> code, | 
| 5829 Handle<FixedArray> literals); | 5833 Handle<FixedArray> literals); | 
| 5830 static const int kEntryLength = 3; | 5834 static const int kEntryLength = 3; | 
| 5831 | 5835 | 
| 5832 // [scope_info]: Scope info. | 5836 // [scope_info]: Scope info. | 
| 5833 DECL_ACCESSORS(scope_info, ScopeInfo) | 5837 DECL_ACCESSORS(scope_info, ScopeInfo) | 
| 5834 | 5838 | 
| (...skipping 3753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9588 } else { | 9592 } else { | 
| 9589 value &= ~(1 << bit_position); | 9593 value &= ~(1 << bit_position); | 
| 9590 } | 9594 } | 
| 9591 return value; | 9595 return value; | 
| 9592 } | 9596 } | 
| 9593 }; | 9597 }; | 
| 9594 | 9598 | 
| 9595 } } // namespace v8::internal | 9599 } } // namespace v8::internal | 
| 9596 | 9600 | 
| 9597 #endif // V8_OBJECTS_H_ | 9601 #endif // V8_OBJECTS_H_ | 
| OLD | NEW |