| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } while (false) | 115 } while (false) |
| 116 | 116 |
| 117 #define RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, value) \ | 117 #define RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, value) \ |
| 118 do { \ | 118 do { \ |
| 119 if ((call).is_null()) { \ | 119 if ((call).is_null()) { \ |
| 120 ASSERT((isolate)->has_pending_exception()); \ | 120 ASSERT((isolate)->has_pending_exception()); \ |
| 121 return (value); \ | 121 return (value); \ |
| 122 } \ | 122 } \ |
| 123 } while (false) | 123 } while (false) |
| 124 | 124 |
| 125 #define CHECK_NOT_EMPTY_HANDLE(isolate, call) \ |
| 126 do { \ |
| 127 ASSERT(!(isolate)->has_pending_exception()); \ |
| 128 CHECK(!(call).is_null()); \ |
| 129 CHECK(!(isolate)->has_pending_exception()); \ |
| 130 } while (false) |
| 131 |
| 125 #define RETURN_IF_EMPTY_HANDLE(isolate, call) \ | 132 #define RETURN_IF_EMPTY_HANDLE(isolate, call) \ |
| 126 RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, Failure::Exception()) | 133 RETURN_IF_EMPTY_HANDLE_VALUE(isolate, call, Failure::Exception()) |
| 127 | 134 |
| 128 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \ | 135 #define FOR_EACH_ISOLATE_ADDRESS_NAME(C) \ |
| 129 C(Handler, handler) \ | 136 C(Handler, handler) \ |
| 130 C(CEntryFP, c_entry_fp) \ | 137 C(CEntryFP, c_entry_fp) \ |
| 131 C(Context, context) \ | 138 C(Context, context) \ |
| 132 C(PendingException, pending_exception) \ | 139 C(PendingException, pending_exception) \ |
| 133 C(ExternalCaughtException, external_caught_exception) \ | 140 C(ExternalCaughtException, external_caught_exception) \ |
| 134 C(JSEntrySP, js_entry_sp) | 141 C(JSEntrySP, js_entry_sp) |
| (...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 | 1379 |
| 1373 // Mark the global context with out of memory. | 1380 // Mark the global context with out of memory. |
| 1374 inline void Context::mark_out_of_memory() { | 1381 inline void Context::mark_out_of_memory() { |
| 1375 global_context()->set_out_of_memory(HEAP->true_value()); | 1382 global_context()->set_out_of_memory(HEAP->true_value()); |
| 1376 } | 1383 } |
| 1377 | 1384 |
| 1378 | 1385 |
| 1379 } } // namespace v8::internal | 1386 } } // namespace v8::internal |
| 1380 | 1387 |
| 1381 #endif // V8_ISOLATE_H_ | 1388 #endif // V8_ISOLATE_H_ |
| OLD | NEW |