| 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 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 Failure* Failure::InternalError() { | 1031 Failure* Failure::InternalError() { |
| 1032 return Construct(INTERNAL_ERROR); | 1032 return Construct(INTERNAL_ERROR); |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 | 1035 |
| 1036 Failure* Failure::Exception() { | 1036 Failure* Failure::Exception() { |
| 1037 return Construct(EXCEPTION); | 1037 return Construct(EXCEPTION); |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 | 1040 |
| 1041 Failure* Failure::OutOfMemoryException() { | 1041 Failure* Failure::OutOfMemoryException(intptr_t value) { |
| 1042 return Construct(OUT_OF_MEMORY_EXCEPTION); | 1042 return Construct(OUT_OF_MEMORY_EXCEPTION, value); |
| 1043 } | 1043 } |
| 1044 | 1044 |
| 1045 | 1045 |
| 1046 intptr_t Failure::value() const { | 1046 intptr_t Failure::value() const { |
| 1047 return static_cast<intptr_t>( | 1047 return static_cast<intptr_t>( |
| 1048 reinterpret_cast<uintptr_t>(this) >> kFailureTagSize); | 1048 reinterpret_cast<uintptr_t>(this) >> kFailureTagSize); |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 | 1051 |
| 1052 Failure* Failure::RetryAfterGC() { | 1052 Failure* Failure::RetryAfterGC() { |
| (...skipping 4728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5781 #undef WRITE_UINT32_FIELD | 5781 #undef WRITE_UINT32_FIELD |
| 5782 #undef READ_SHORT_FIELD | 5782 #undef READ_SHORT_FIELD |
| 5783 #undef WRITE_SHORT_FIELD | 5783 #undef WRITE_SHORT_FIELD |
| 5784 #undef READ_BYTE_FIELD | 5784 #undef READ_BYTE_FIELD |
| 5785 #undef WRITE_BYTE_FIELD | 5785 #undef WRITE_BYTE_FIELD |
| 5786 | 5786 |
| 5787 | 5787 |
| 5788 } } // namespace v8::internal | 5788 } } // namespace v8::internal |
| 5789 | 5789 |
| 5790 #endif // V8_OBJECTS_INL_H_ | 5790 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |