| 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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 | 915 |
| 916 template<typename T> | 916 template<typename T> |
| 917 inline bool ToHandle(Handle<T>* obj, Isolate* isolate) { | 917 inline bool ToHandle(Handle<T>* obj, Isolate* isolate) { |
| 918 if (IsFailure()) return false; | 918 if (IsFailure()) return false; |
| 919 *obj = handle(T::cast(reinterpret_cast<Object*>(this)), isolate); | 919 *obj = handle(T::cast(reinterpret_cast<Object*>(this)), isolate); |
| 920 return true; | 920 return true; |
| 921 } | 921 } |
| 922 | 922 |
| 923 #ifdef OBJECT_PRINT | 923 #ifdef OBJECT_PRINT |
| 924 // Prints this object with details. | 924 // Prints this object with details. |
| 925 inline void Print() { | 925 void Print(); |
| 926 Print(stdout); | |
| 927 } | |
| 928 inline void PrintLn() { | |
| 929 PrintLn(stdout); | |
| 930 } | |
| 931 void Print(FILE* out); | 926 void Print(FILE* out); |
| 927 void PrintLn(); |
| 932 void PrintLn(FILE* out); | 928 void PrintLn(FILE* out); |
| 933 #endif | 929 #endif |
| 934 #ifdef VERIFY_HEAP | 930 #ifdef VERIFY_HEAP |
| 935 // Verifies the object. | 931 // Verifies the object. |
| 936 void Verify(); | 932 void Verify(); |
| 937 #endif | 933 #endif |
| 938 }; | 934 }; |
| 939 | 935 |
| 940 | 936 |
| 941 #define OBJECT_TYPE_LIST(V) \ | 937 #define OBJECT_TYPE_LIST(V) \ |
| (...skipping 8890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9832 } else { | 9828 } else { |
| 9833 value &= ~(1 << bit_position); | 9829 value &= ~(1 << bit_position); |
| 9834 } | 9830 } |
| 9835 return value; | 9831 return value; |
| 9836 } | 9832 } |
| 9837 }; | 9833 }; |
| 9838 | 9834 |
| 9839 } } // namespace v8::internal | 9835 } } // namespace v8::internal |
| 9840 | 9836 |
| 9841 #endif // V8_OBJECTS_H_ | 9837 #endif // V8_OBJECTS_H_ |
| OLD | NEW |