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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 // Returns the space that needs to be collected for RetryAfterGC failures. | 1134 // Returns the space that needs to be collected for RetryAfterGC failures. |
1135 inline AllocationSpace allocation_space() const; | 1135 inline AllocationSpace allocation_space() const; |
1136 | 1136 |
1137 inline bool IsInternalError() const; | 1137 inline bool IsInternalError() const; |
1138 inline bool IsOutOfMemoryException() const; | 1138 inline bool IsOutOfMemoryException() const; |
1139 | 1139 |
1140 static inline Failure* RetryAfterGC(AllocationSpace space); | 1140 static inline Failure* RetryAfterGC(AllocationSpace space); |
1141 static inline Failure* RetryAfterGC(); // NEW_SPACE | 1141 static inline Failure* RetryAfterGC(); // NEW_SPACE |
1142 static inline Failure* Exception(); | 1142 static inline Failure* Exception(); |
1143 static inline Failure* InternalError(); | 1143 static inline Failure* InternalError(); |
1144 static inline Failure* OutOfMemoryException(); | 1144 // TODO(jkummerow): The value is temporary instrumentation. Remove it |
| 1145 // when it has served its purpose. |
| 1146 static inline Failure* OutOfMemoryException(intptr_t value); |
1145 // Casting. | 1147 // Casting. |
1146 static inline Failure* cast(MaybeObject* object); | 1148 static inline Failure* cast(MaybeObject* object); |
1147 | 1149 |
1148 // Dispatched behavior. | 1150 // Dispatched behavior. |
1149 inline void FailurePrint() { | 1151 inline void FailurePrint() { |
1150 FailurePrint(stdout); | 1152 FailurePrint(stdout); |
1151 } | 1153 } |
1152 void FailurePrint(FILE* out); | 1154 void FailurePrint(FILE* out); |
1153 void FailurePrint(StringStream* accumulator); | 1155 void FailurePrint(StringStream* accumulator); |
1154 | 1156 |
(...skipping 7631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8786 } else { | 8788 } else { |
8787 value &= ~(1 << bit_position); | 8789 value &= ~(1 << bit_position); |
8788 } | 8790 } |
8789 return value; | 8791 return value; |
8790 } | 8792 } |
8791 }; | 8793 }; |
8792 | 8794 |
8793 } } // namespace v8::internal | 8795 } } // namespace v8::internal |
8794 | 8796 |
8795 #endif // V8_OBJECTS_H_ | 8797 #endif // V8_OBJECTS_H_ |
OLD | NEW |