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 236963002: Handlify AddToOptimizedCodeMap. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | « no previous file | 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 6907 matching lines...) Expand 10 before | Expand all | Expand 10 after
6918 // Clear optimized code map. 6918 // Clear optimized code map.
6919 void ClearOptimizedCodeMap(); 6919 void ClearOptimizedCodeMap();
6920 6920
6921 // Removed a specific optimized code object from the optimized code map. 6921 // Removed a specific optimized code object from the optimized code map.
6922 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason); 6922 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason);
6923 6923
6924 // Trims the optimized code map after entries have been removed. 6924 // Trims the optimized code map after entries have been removed.
6925 void TrimOptimizedCodeMap(int shrink_by); 6925 void TrimOptimizedCodeMap(int shrink_by);
6926 6926
6927 // Add a new entry to the optimized code map. 6927 // Add a new entry to the optimized code map.
6928 MUST_USE_RESULT MaybeObject* AddToOptimizedCodeMap(Context* native_context,
6929 Code* code,
6930 FixedArray* literals,
6931 BailoutId osr_ast_id);
6932 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, 6928 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared,
6933 Handle<Context> native_context, 6929 Handle<Context> native_context,
6934 Handle<Code> code, 6930 Handle<Code> code,
6935 Handle<FixedArray> literals, 6931 Handle<FixedArray> literals,
6936 BailoutId osr_ast_id); 6932 BailoutId osr_ast_id);
6937 6933
6938 // Layout description of the optimized code map. 6934 // Layout description of the optimized code map.
6939 static const int kNextMapIndex = 0; 6935 static const int kNextMapIndex = 0;
6940 static const int kEntriesStart = 1; 6936 static const int kEntriesStart = 1;
6941 static const int kContextOffset = 0; 6937 static const int kContextOffset = 0;
(...skipping 4084 matching lines...) Expand 10 before | Expand all | Expand 10 after
11026 } else { 11022 } else {
11027 value &= ~(1 << bit_position); 11023 value &= ~(1 << bit_position);
11028 } 11024 }
11029 return value; 11025 return value;
11030 } 11026 }
11031 }; 11027 };
11032 11028
11033 } } // namespace v8::internal 11029 } } // namespace v8::internal
11034 11030
11035 #endif // V8_OBJECTS_H_ 11031 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698