OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 | 1212 |
1213 void Isolate::TraceException(bool flag) { | 1213 void Isolate::TraceException(bool flag) { |
1214 FLAG_trace_exception = flag; // TODO(isolates): This is an unfortunate use. | 1214 FLAG_trace_exception = flag; // TODO(isolates): This is an unfortunate use. |
1215 } | 1215 } |
1216 | 1216 |
1217 | 1217 |
1218 bool Isolate::OptionalRescheduleException(bool is_bottom_call) { | 1218 bool Isolate::OptionalRescheduleException(bool is_bottom_call) { |
1219 ASSERT(has_pending_exception()); | 1219 ASSERT(has_pending_exception()); |
1220 PropagatePendingExceptionToExternalTryCatch(); | 1220 PropagatePendingExceptionToExternalTryCatch(); |
1221 | 1221 |
1222 // Allways reschedule out of memory exceptions. | 1222 // Always reschedule out of memory exceptions. |
1223 if (!is_out_of_memory()) { | 1223 if (!is_out_of_memory()) { |
1224 bool is_termination_exception = | 1224 bool is_termination_exception = |
1225 pending_exception() == heap_.termination_exception(); | 1225 pending_exception() == heap_.termination_exception(); |
1226 | 1226 |
1227 // Do not reschedule the exception if this is the bottom call. | 1227 // Do not reschedule the exception if this is the bottom call. |
1228 bool clear_exception = is_bottom_call; | 1228 bool clear_exception = is_bottom_call; |
1229 | 1229 |
1230 if (is_termination_exception) { | 1230 if (is_termination_exception) { |
1231 if (is_bottom_call) { | 1231 if (is_bottom_call) { |
1232 thread_local_top()->external_caught_exception_ = false; | 1232 thread_local_top()->external_caught_exception_ = false; |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1918 | 1918 |
1919 #ifdef DEBUG | 1919 #ifdef DEBUG |
1920 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 1920 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
1921 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 1921 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
1922 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 1922 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
1923 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1923 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
1924 #undef ISOLATE_FIELD_OFFSET | 1924 #undef ISOLATE_FIELD_OFFSET |
1925 #endif | 1925 #endif |
1926 | 1926 |
1927 } } // namespace v8::internal | 1927 } } // namespace v8::internal |
OLD | NEW |