| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 inline bool To(T** obj) { | 664 inline bool To(T** obj) { |
| 665 if (IsFailure()) return false; | 665 if (IsFailure()) return false; |
| 666 *obj = T::cast(reinterpret_cast<Object*>(this)); | 666 *obj = T::cast(reinterpret_cast<Object*>(this)); |
| 667 return true; | 667 return true; |
| 668 } | 668 } |
| 669 | 669 |
| 670 #ifdef OBJECT_PRINT | 670 #ifdef OBJECT_PRINT |
| 671 // Prints this object with details. | 671 // Prints this object with details. |
| 672 inline void Print() { | 672 inline void Print() { |
| 673 Print(stdout); | 673 Print(stdout); |
| 674 }; | 674 } |
| 675 inline void PrintLn() { | 675 inline void PrintLn() { |
| 676 PrintLn(stdout); | 676 PrintLn(stdout); |
| 677 } | 677 } |
| 678 void Print(FILE* out); | 678 void Print(FILE* out); |
| 679 void PrintLn(FILE* out); | 679 void PrintLn(FILE* out); |
| 680 #endif | 680 #endif |
| 681 #ifdef DEBUG | 681 #ifdef DEBUG |
| 682 // Verifies the object. | 682 // Verifies the object. |
| 683 void Verify(); | 683 void Verify(); |
| 684 #endif | 684 #endif |
| (...skipping 6071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6756 } else { | 6756 } else { |
| 6757 value &= ~(1 << bit_position); | 6757 value &= ~(1 << bit_position); |
| 6758 } | 6758 } |
| 6759 return value; | 6759 return value; |
| 6760 } | 6760 } |
| 6761 }; | 6761 }; |
| 6762 | 6762 |
| 6763 } } // namespace v8::internal | 6763 } } // namespace v8::internal |
| 6764 | 6764 |
| 6765 #endif // V8_OBJECTS_H_ | 6765 #endif // V8_OBJECTS_H_ |
| OLD | NEW |