OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/isolate.h" | 5 #include "src/isolate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 } | 1090 } |
1091 | 1091 |
1092 // Generate the message if required. | 1092 // Generate the message if required. |
1093 if (requires_message && !rethrowing_message) { | 1093 if (requires_message && !rethrowing_message) { |
1094 MessageLocation computed_location; | 1094 MessageLocation computed_location; |
1095 // If no location was specified we try to use a computed one instead. | 1095 // If no location was specified we try to use a computed one instead. |
1096 if (location == NULL && ComputeLocation(&computed_location)) { | 1096 if (location == NULL && ComputeLocation(&computed_location)) { |
1097 location = &computed_location; | 1097 location = &computed_location; |
1098 } | 1098 } |
1099 | 1099 |
1100 if (bootstrapper()->IsActive()) { | 1100 if (false && bootstrapper()->IsActive()) { |
1101 // It's not safe to try to make message objects or collect stack traces | 1101 // It's not safe to try to make message objects or collect stack traces |
1102 // while the bootstrapper is active since the infrastructure may not have | 1102 // while the bootstrapper is active since the infrastructure may not have |
1103 // been properly initialized. | 1103 // been properly initialized. |
1104 ReportBootstrappingException(exception_handle, location); | 1104 ReportBootstrappingException(exception_handle, location); |
1105 } else { | 1105 } else { |
1106 Handle<Object> message_obj = CreateMessage(exception_handle, location); | 1106 Handle<Object> message_obj = CreateMessage(exception_handle, location); |
1107 thread_local_top()->pending_message_obj_ = *message_obj; | 1107 thread_local_top()->pending_message_obj_ = *message_obj; |
1108 | 1108 |
1109 // For any exception not caught by JavaScript, even when an external | 1109 // For any exception not caught by JavaScript, even when an external |
1110 // handler is present: | 1110 // handler is present: |
(...skipping 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3451 // Then check whether this scope intercepts. | 3451 // Then check whether this scope intercepts. |
3452 if ((flag & intercept_mask_)) { | 3452 if ((flag & intercept_mask_)) { |
3453 intercepted_flags_ |= flag; | 3453 intercepted_flags_ |= flag; |
3454 return true; | 3454 return true; |
3455 } | 3455 } |
3456 return false; | 3456 return false; |
3457 } | 3457 } |
3458 | 3458 |
3459 } // namespace internal | 3459 } // namespace internal |
3460 } // namespace v8 | 3460 } // namespace v8 |
OLD | NEW |