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

Side by Side Diff: src/objects.h

Issue 75413002: Convert PatchCache (and related methods) to use types rather than objects/maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 1 month 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/list.h ('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 5220 matching lines...) Expand 10 before | Expand all | Expand 10 after
5231 // Get the safepoint entry for the given pc. 5231 // Get the safepoint entry for the given pc.
5232 SafepointEntry GetSafepointEntry(Address pc); 5232 SafepointEntry GetSafepointEntry(Address pc);
5233 5233
5234 // Find an object in a stub with a specified map 5234 // Find an object in a stub with a specified map
5235 Object* FindNthObject(int n, Map* match_map); 5235 Object* FindNthObject(int n, Map* match_map);
5236 void ReplaceNthObject(int n, Map* match_map, Object* replace_with); 5236 void ReplaceNthObject(int n, Map* match_map, Object* replace_with);
5237 5237
5238 // Find the first map in an IC stub. 5238 // Find the first map in an IC stub.
5239 Map* FindFirstMap(); 5239 Map* FindFirstMap();
5240 void FindAllMaps(MapHandleList* maps); 5240 void FindAllMaps(MapHandleList* maps);
5241 void FindAllTypes(TypeHandleList* types);
5241 void ReplaceFirstMap(Map* replace); 5242 void ReplaceFirstMap(Map* replace);
5242 5243
5243 // Find the first handler in an IC stub. 5244 // Find the first handler in an IC stub.
5244 Code* FindFirstHandler(); 5245 Code* FindFirstHandler();
5245 5246
5246 // Find |length| handlers and put them into |code_list|. Returns false if not 5247 // Find |length| handlers and put them into |code_list|. Returns false if not
5247 // enough handlers can be found. 5248 // enough handlers can be found.
5248 bool FindHandlers(CodeHandleList* code_list, int length = -1); 5249 bool FindHandlers(CodeHandleList* code_list, int length = -1);
5249 5250
5250 // Find the first name in an IC stub. 5251 // Find the first name in an IC stub.
(...skipping 5312 matching lines...) Expand 10 before | Expand all | Expand 10 after
10563 } else { 10564 } else {
10564 value &= ~(1 << bit_position); 10565 value &= ~(1 << bit_position);
10565 } 10566 }
10566 return value; 10567 return value;
10567 } 10568 }
10568 }; 10569 };
10569 10570
10570 } } // namespace v8::internal 10571 } } // namespace v8::internal
10571 10572
10572 #endif // V8_OBJECTS_H_ 10573 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/list.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698