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

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: Remove extraneous changes 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 5801 matching lines...) Expand 10 before | Expand all | Expand 10 after
5812 5812
5813 // Returns index i of the entry with the specified context. At position 5813 // Returns index i of the entry with the specified context. At position
5814 // i - 1 is the context, position i the code, and i + 1 the literals array. 5814 // i - 1 is the context, position i the code, and i + 1 the literals array.
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 // Removed a specific optimized code object from the optimized code map, or
5823 void ClearOptimizedCodeMap(const char* reason); 5823 // all code objects if |optimized_code| is null.
5824 void ClearOptimizedCodeMap(Code* optimized_code, const char* reason);
Michael Starzinger 2013/05/13 11:33:15 Can we add a new EvictFromOptimizedCodeMap functio
5824 5825
5825 // Add a new entry to the optimized code map. 5826 // Add a new entry to the optimized code map.
5826 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, 5827 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared,
5827 Handle<Context> native_context, 5828 Handle<Context> native_context,
5828 Handle<Code> code, 5829 Handle<Code> code,
5829 Handle<FixedArray> literals); 5830 Handle<FixedArray> literals);
5830 static const int kEntryLength = 3; 5831 static const int kEntryLength = 3;
5831 5832
5832 // [scope_info]: Scope info. 5833 // [scope_info]: Scope info.
5833 DECL_ACCESSORS(scope_info, ScopeInfo) 5834 DECL_ACCESSORS(scope_info, ScopeInfo)
(...skipping 3754 matching lines...) Expand 10 before | Expand all | Expand 10 after
9588 } else { 9589 } else {
9589 value &= ~(1 << bit_position); 9590 value &= ~(1 << bit_position);
9590 } 9591 }
9591 return value; 9592 return value;
9592 } 9593 }
9593 }; 9594 };
9594 9595
9595 } } // namespace v8::internal 9596 } } // namespace v8::internal
9596 9597
9597 #endif // V8_OBJECTS_H_ 9598 #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