| 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 2325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Object* FindInCodeCache(String* name, Code::Flags flags); |
| 2345 | 2345 |
| 2346 // Tells whether code is in the code cache. | 2346 // Returns the non-negative index of the code object if it is in the |
| 2347 bool IncludedInCodeCache(Code* code); | 2347 // cache and -1 otherwise. |
| 2348 int IndexInCodeCache(Code* code); |
| 2349 |
| 2350 // Removes a code object from the code cache at the given index. |
| 2351 void RemoveFromCodeCache(int index); |
| 2348 | 2352 |
| 2349 // Dispatched behavior. | 2353 // Dispatched behavior. |
| 2350 void MapIterateBody(ObjectVisitor* v); | 2354 void MapIterateBody(ObjectVisitor* v); |
| 2351 #ifdef DEBUG | 2355 #ifdef DEBUG |
| 2352 void MapPrint(); | 2356 void MapPrint(); |
| 2353 void MapVerify(); | 2357 void MapVerify(); |
| 2354 #endif | 2358 #endif |
| 2355 | 2359 |
| 2356 // Layout description. | 2360 // Layout description. |
| 2357 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... |
| 3857 } else { | 3861 } else { |
| 3858 value &= ~(1 << bit_position); | 3862 value &= ~(1 << bit_position); |
| 3859 } | 3863 } |
| 3860 return value; | 3864 return value; |
| 3861 } | 3865 } |
| 3862 }; | 3866 }; |
| 3863 | 3867 |
| 3864 } } // namespace v8::internal | 3868 } } // namespace v8::internal |
| 3865 | 3869 |
| 3866 #endif // V8_OBJECTS_H_ | 3870 #endif // V8_OBJECTS_H_ |
| OLD | NEW |