| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 if ((call).is_null()) { \ | 139 if ((call).is_null()) { \ |
| 140 ASSERT((isolate)->has_pending_exception()); \ | 140 ASSERT((isolate)->has_pending_exception()); \ |
| 141 return (value); \ | 141 return (value); \ |
| 142 } \ | 142 } \ |
| 143 } while (false) | 143 } while (false) |
| 144 | 144 |
| 145 #define CHECK_NOT_EMPTY_HANDLE(isolate, call) \ | 145 #define CHECK_NOT_EMPTY_HANDLE(isolate, call) \ |
| 146 do { \ | 146 do { \ |
| 147 ASSERT(!(isolate)->has_pending_exception()); \ | 147 ASSERT(!(isolate)->has_pending_exception()); \ |
| 148 CHECK(!(call).is_null()); \ | 148 CHECK(!(call).is_null()); \ |
| 149 CHECK(!(isolate)->has_pending_exception()); \ | |
| 150 } while (false) | 149 } while (false) |
| 151 | 150 |
| 152 #define RETURN_IF_EMPTY_HANDLE(isolate, call) \ | 151 #define RETURN_IF_EMPTY_HANDLE(isolate, call) \ |
| 153 RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, Failure::Exception()) | 152 RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, Failure::Exception()) |
| 154 | 153 |
| 155 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \ | 154 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \ |
| 156 C(Handler, handler) \ | 155 C(Handler, handler) \ |
| 157 C(CEntryFP, c_entry_fp) \ | 156 C(CEntryFP, c_entry_fp) \ |
| 158 C(Context, context) \ | 157 C(Context, context) \ |
| 159 C(PendingException, pending_exception) \ | 158 C(PendingException, pending_exception) \ |
| (...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1558 } | 1557 } |
| 1559 | 1558 |
| 1560 EmbeddedVector<char, 128> filename_; | 1559 EmbeddedVector<char, 128> filename_; |
| 1561 FILE* file_; | 1560 FILE* file_; |
| 1562 int scope_depth_; | 1561 int scope_depth_; |
| 1563 }; | 1562 }; |
| 1564 | 1563 |
| 1565 } } // namespace v8::internal | 1564 } } // namespace v8::internal |
| 1566 | 1565 |
| 1567 #endif // V8_ISOLATE_H_ | 1566 #endif // V8_ISOLATE_H_ |
| OLD | NEW |