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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
170 return value; \ | 170 return value; \ |
171 } \ | 171 } \ |
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, 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, 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( \ |
193 isolate, dst, call, MaybeHandle<T>::Exception()) | 193 isolate, call, MaybeHandle<T>()) |
Igor Sheludko
2014/04/04 10:58:19
Now it fits one line.
Yang
2014/04/04 11:17:41
Done.
| |
194 | 194 |
195 | 195 |
196 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \ | 196 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \ |
197 C(Handler, handler) \ | 197 C(Handler, handler) \ |
198 C(CEntryFP, c_entry_fp) \ | 198 C(CEntryFP, c_entry_fp) \ |
199 C(Context, context) \ | 199 C(Context, context) \ |
200 C(PendingException, pending_exception) \ | 200 C(PendingException, pending_exception) \ |
201 C(ExternalCaughtException, external_caught_exception) \ | 201 C(ExternalCaughtException, external_caught_exception) \ |
202 C(JSEntrySP, js_entry_sp) | 202 C(JSEntrySP, js_entry_sp) |
203 | 203 |
(...skipping 1378 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 |