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 14604007: Only flush SharedFunctionInfo optimized code cache when necessary (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bug Created 7 years, 7 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 | « src/ia32/deoptimizer-ia32.cc ('k') | src/objects.cc » ('j') | 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 5804 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
5826 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason);
5827
5825 // Add a new entry to the optimized code map. 5828 // Add a new entry to the optimized code map.
5826 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, 5829 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared,
5827 Handle<Context> native_context, 5830 Handle<Context> native_context,
5828 Handle<Code> code, 5831 Handle<Code> code,
5829 Handle<FixedArray> literals); 5832 Handle<FixedArray> literals);
5830 static const int kEntryLength = 3; 5833 static const int kEntryLength = 3;
5831 5834
5832 // [scope_info]: Scope info. 5835 // [scope_info]: Scope info.
5833 DECL_ACCESSORS(scope_info, ScopeInfo) 5836 DECL_ACCESSORS(scope_info, ScopeInfo)
5834 5837
(...skipping 3753 matching lines...) Expand 10 before | Expand all | Expand 10 after
9588 } else { 9591 } else {
9589 value &= ~(1 << bit_position); 9592 value &= ~(1 << bit_position);
9590 } 9593 }
9591 return value; 9594 return value;
9592 } 9595 }
9593 }; 9596 };
9594 9597
9595 } } // namespace v8::internal 9598 } } // namespace v8::internal
9596 9599
9597 #endif // V8_OBJECTS_H_ 9600 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698