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

Side by Side Diff: src/objects.h

Issue 25486002: Allow code to be cached in shared maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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 4961 matching lines...) Expand 10 before | Expand all | Expand 10 after
4972 // cache is passed to the stub. 4972 // cache is passed to the stub.
4973 inline bool has_function_cache(); 4973 inline bool has_function_cache();
4974 inline void set_has_function_cache(bool flag); 4974 inline void set_has_function_cache(bool flag);
4975 4975
4976 4976
4977 // [marked_for_deoptimization]: For kind OPTIMIZED_FUNCTION tells whether 4977 // [marked_for_deoptimization]: For kind OPTIMIZED_FUNCTION tells whether
4978 // the code is going to be deoptimized because of dead embedded maps. 4978 // the code is going to be deoptimized because of dead embedded maps.
4979 inline bool marked_for_deoptimization(); 4979 inline bool marked_for_deoptimization();
4980 inline void set_marked_for_deoptimization(bool flag); 4980 inline void set_marked_for_deoptimization(bool flag);
4981 4981
4982 bool allowed_in_shared_map_code_cache();
4983
4984 // Get the safepoint entry for the given pc. 4982 // Get the safepoint entry for the given pc.
4985 SafepointEntry GetSafepointEntry(Address pc); 4983 SafepointEntry GetSafepointEntry(Address pc);
4986 4984
4987 // Find an object in a stub with a specified map 4985 // Find an object in a stub with a specified map
4988 Object* FindNthObject(int n, Map* match_map); 4986 Object* FindNthObject(int n, Map* match_map);
4989 void ReplaceNthObject(int n, Map* match_map, Object* replace_with); 4987 void ReplaceNthObject(int n, Map* match_map, Object* replace_with);
4990 4988
4991 // Find the first map in an IC stub. 4989 // Find the first map in an IC stub.
4992 Map* FindFirstMap(); 4990 Map* FindFirstMap();
4993 void FindAllMaps(MapHandleList* maps); 4991 void FindAllMaps(MapHandleList* maps);
(...skipping 5238 matching lines...) Expand 10 before | Expand all | Expand 10 after
10232 } else { 10230 } else {
10233 value &= ~(1 << bit_position); 10231 value &= ~(1 << bit_position);
10234 } 10232 }
10235 return value; 10233 return value;
10236 } 10234 }
10237 }; 10235 };
10238 10236
10239 } } // namespace v8::internal 10237 } } // namespace v8::internal
10240 10238
10241 #endif // V8_OBJECTS_H_ 10239 #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