OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2334 | 2334 |
2335 // Code cache operations. | 2335 // Code cache operations. |
2336 | 2336 |
2337 // Clears the code cache. | 2337 // Clears the code cache. |
2338 inline void ClearCodeCache(); | 2338 inline void ClearCodeCache(); |
2339 | 2339 |
2340 // Update code cache. | 2340 // Update code cache. |
2341 Object* UpdateCodeCache(String* name, Code* code); | 2341 Object* UpdateCodeCache(String* name, Code* code); |
2342 | 2342 |
2343 // Returns the found code or undefined if absent. | 2343 // Returns the found code or undefined if absent. |
2344 Object* FindInCodeCache(String* name, Code::Flags flags); | 2344 inline Object* FindInCodeCache(String* name, Code::Flags flags); |
2345 | 2345 |
2346 // Returns the non-negative index of the code object if it is in the | 2346 // Returns the found code or undefined if absent. Also returns the |
2347 // cache and -1 otherwise. | 2347 // index at which the code was found or -1 if absent. |
2348 int IndexInCodeCache(Code* code); | 2348 Object* FindIndexInCodeCache(String* name, Code::Flags flags, int* index); |
2349 | 2349 |
2350 // Removes a code object from the code cache at the given index. | 2350 // Removes a code object from the code cache at the given index. |
2351 void RemoveFromCodeCache(int index); | 2351 inline void RemoveFromCodeCache(int index); |
2352 | 2352 |
2353 // Dispatched behavior. | 2353 // Dispatched behavior. |
2354 void MapIterateBody(ObjectVisitor* v); | 2354 void MapIterateBody(ObjectVisitor* v); |
2355 #ifdef DEBUG | 2355 #ifdef DEBUG |
2356 void MapPrint(); | 2356 void MapPrint(); |
2357 void MapVerify(); | 2357 void MapVerify(); |
2358 #endif | 2358 #endif |
2359 | 2359 |
2360 // Layout description. | 2360 // Layout description. |
2361 static const int kInstanceAttributesOffset = HeapObject::kSize; | 2361 static const int kInstanceAttributesOffset = HeapObject::kSize; |
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3861 } else { | 3861 } else { |
3862 value &= ~(1 << bit_position); | 3862 value &= ~(1 << bit_position); |
3863 } | 3863 } |
3864 return value; | 3864 return value; |
3865 } | 3865 } |
3866 }; | 3866 }; |
3867 | 3867 |
3868 } } // namespace v8::internal | 3868 } } // namespace v8::internal |
3869 | 3869 |
3870 #endif // V8_OBJECTS_H_ | 3870 #endif // V8_OBJECTS_H_ |
OLD | NEW |