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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 } while (false) | 172 } while (false) |
173 | 173 |
174 #define ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, dst, call) \ | 174 #define ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, dst, call) \ |
175 ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, Failure::Exception()) | 175 ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, Failure::Exception()) |
176 | 176 |
177 #define ASSIGN_RETURN_ON_EXCEPTION(isolate, dst, call, T) \ | 177 #define ASSIGN_RETURN_ON_EXCEPTION(isolate, dst, call, T) \ |
178 ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, MaybeHandle<T>()) | 178 ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, MaybeHandle<T>()) |
179 | 179 |
180 #define RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, value) \ | 180 #define RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, value) \ |
181 do { \ | 181 do { \ |
182 if (call.is_null()) { \ | 182 if ((call).is_null()) { \ |
183 ASSERT((isolate)->has_pending_exception()); \ | 183 ASSERT((isolate)->has_pending_exception()); \ |
184 return value; \ | 184 return value; \ |
185 } \ | 185 } \ |
186 } while (false) | 186 } while (false) |
187 | 187 |
188 #define RETURN_FAILURE_ON_EXCEPTION(isolate, call) \ | 188 #define RETURN_FAILURE_ON_EXCEPTION(isolate, call) \ |
189 RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, Failure::Exception()) | 189 RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, Failure::Exception()) |
190 | 190 |
191 #define RETURN_ON_EXCEPTION(isolate, call, T) \ | 191 #define RETURN_ON_EXCEPTION(isolate, call, T) \ |
192 RETURN_ON_EXCEPTION_VALUE( \ | 192 RETURN_ON_EXCEPTION_VALUE( \ |
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 } | 1582 } |
1583 | 1583 |
1584 EmbeddedVector<char, 128> filename_; | 1584 EmbeddedVector<char, 128> filename_; |
1585 FILE* file_; | 1585 FILE* file_; |
1586 int scope_depth_; | 1586 int scope_depth_; |
1587 }; | 1587 }; |
1588 | 1588 |
1589 } } // namespace v8::internal | 1589 } } // namespace v8::internal |
1590 | 1590 |
1591 #endif // V8_ISOLATE_H_ | 1591 #endif // V8_ISOLATE_H_ |
OLD | NEW |