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

Side by Side Diff: src/objects.h

Issue 882006: Merge fix for crbug.com/37853 into the partial snapshots branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 years, 9 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/ic.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after
2934 inline void ClearCodeCache(); 2934 inline void ClearCodeCache();
2935 2935
2936 // Update code cache. 2936 // Update code cache.
2937 Object* UpdateCodeCache(String* name, Code* code); 2937 Object* UpdateCodeCache(String* name, Code* code);
2938 2938
2939 // Returns the found code or undefined if absent. 2939 // Returns the found code or undefined if absent.
2940 Object* FindInCodeCache(String* name, Code::Flags flags); 2940 Object* FindInCodeCache(String* name, Code::Flags flags);
2941 2941
2942 // Returns the non-negative index of the code object if it is in the 2942 // Returns the non-negative index of the code object if it is in the
2943 // cache and -1 otherwise. 2943 // cache and -1 otherwise.
2944 int IndexInCodeCache(String* name, Code* code); 2944 int IndexInCodeCache(Object* name, Code* code);
2945 2945
2946 // Removes a code object from the code cache at the given index. 2946 // Removes a code object from the code cache at the given index.
2947 void RemoveFromCodeCache(String* name, Code* code, int index); 2947 void RemoveFromCodeCache(String* name, Code* code, int index);
2948 2948
2949 // For every transition in this map, makes the transition's 2949 // For every transition in this map, makes the transition's
2950 // target's prototype pointer point back to this map. 2950 // target's prototype pointer point back to this map.
2951 // This is undone in MarkCompactCollector::ClearNonLiveTransitions(). 2951 // This is undone in MarkCompactCollector::ClearNonLiveTransitions().
2952 void CreateBackPointers(); 2952 void CreateBackPointers();
2953 2953
2954 // Set all map transitions from this map to dead maps to null. 2954 // Set all map transitions from this map to dead maps to null.
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
3705 Object* Update(String* name, Code* code); 3705 Object* Update(String* name, Code* code);
3706 3706
3707 // Lookup code object in the cache. Returns code object if found and undefined 3707 // Lookup code object in the cache. Returns code object if found and undefined
3708 // if not. 3708 // if not.
3709 Object* Lookup(String* name, Code::Flags flags); 3709 Object* Lookup(String* name, Code::Flags flags);
3710 3710
3711 // Get the internal index of a code object in the cache. Returns -1 if the 3711 // Get the internal index of a code object in the cache. Returns -1 if the
3712 // code object is not in that cache. This index can be used to later call 3712 // code object is not in that cache. This index can be used to later call
3713 // RemoveByIndex. The cache cannot be modified between a call to GetIndex and 3713 // RemoveByIndex. The cache cannot be modified between a call to GetIndex and
3714 // RemoveByIndex. 3714 // RemoveByIndex.
3715 int GetIndex(String* name, Code* code); 3715 int GetIndex(Object* name, Code* code);
3716 3716
3717 // Remove an object from the cache with the provided internal index. 3717 // Remove an object from the cache with the provided internal index.
3718 void RemoveByIndex(String* name, Code* code, int index); 3718 void RemoveByIndex(Object* name, Code* code, int index);
3719 3719
3720 static inline CodeCache* cast(Object* obj); 3720 static inline CodeCache* cast(Object* obj);
3721 3721
3722 #ifdef DEBUG 3722 #ifdef DEBUG
3723 void CodeCachePrint(); 3723 void CodeCachePrint();
3724 void CodeCacheVerify(); 3724 void CodeCacheVerify();
3725 #endif 3725 #endif
3726 3726
3727 static const int kDefaultCacheOffset = HeapObject::kHeaderSize; 3727 static const int kDefaultCacheOffset = HeapObject::kHeaderSize;
3728 static const int kNormalTypeCacheOffset = 3728 static const int kNormalTypeCacheOffset =
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
5052 } else { 5052 } else {
5053 value &= ~(1 << bit_position); 5053 value &= ~(1 << bit_position);
5054 } 5054 }
5055 return value; 5055 return value;
5056 } 5056 }
5057 }; 5057 };
5058 5058
5059 } } // namespace v8::internal 5059 } } // namespace v8::internal
5060 5060
5061 #endif // V8_OBJECTS_H_ 5061 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698