| OLD | NEW | 
|---|
| 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 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1620   bool SameValue(Object* other); | 1620   bool SameValue(Object* other); | 
| 1621 | 1621 | 
| 1622   // Tries to convert an object to an array index.  Returns true and sets | 1622   // Tries to convert an object to an array index.  Returns true and sets | 
| 1623   // the output parameter if it succeeds. | 1623   // the output parameter if it succeeds. | 
| 1624   inline bool ToArrayIndex(uint32_t* index); | 1624   inline bool ToArrayIndex(uint32_t* index); | 
| 1625 | 1625 | 
| 1626   // Returns true if this is a JSValue containing a string and the index is | 1626   // Returns true if this is a JSValue containing a string and the index is | 
| 1627   // < the length of the string.  Used to implement [] on strings. | 1627   // < the length of the string.  Used to implement [] on strings. | 
| 1628   inline bool IsStringObjectWithCharacterAt(uint32_t index); | 1628   inline bool IsStringObjectWithCharacterAt(uint32_t index); | 
| 1629 | 1629 | 
|  | 1630   DECLARE_VERIFIER(Object) | 
| 1630 #ifdef VERIFY_HEAP | 1631 #ifdef VERIFY_HEAP | 
| 1631   // Verify a pointer is a valid object pointer. | 1632   // Verify a pointer is a valid object pointer. | 
| 1632   static void VerifyPointer(Object* p); | 1633   static void VerifyPointer(Object* p); | 
| 1633 #endif | 1634 #endif | 
| 1634 | 1635 | 
| 1635   inline void VerifyApiCallResultType(); | 1636   inline void VerifyApiCallResultType(); | 
| 1636 | 1637 | 
| 1637   // Prints this object without details. | 1638   // Prints this object without details. | 
| 1638   void ShortPrint(FILE* out = stdout); | 1639   void ShortPrint(FILE* out = stdout); | 
| 1639 | 1640 | 
| (...skipping 9180 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 10820     } else { | 10821     } else { | 
| 10821       value &= ~(1 << bit_position); | 10822       value &= ~(1 << bit_position); | 
| 10822     } | 10823     } | 
| 10823     return value; | 10824     return value; | 
| 10824   } | 10825   } | 
| 10825 }; | 10826 }; | 
| 10826 | 10827 | 
| 10827 } }  // namespace v8::internal | 10828 } }  // namespace v8::internal | 
| 10828 | 10829 | 
| 10829 #endif  // V8_OBJECTS_H_ | 10830 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW | 
|---|