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 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1089 } | 1089 } |
1090 | 1090 |
1091 // Generate the message if required. | 1091 // Generate the message if required. |
1092 if (requires_message && !rethrowing_message) { | 1092 if (requires_message && !rethrowing_message) { |
1093 MessageLocation computed_location; | 1093 MessageLocation computed_location; |
1094 // If no location was specified we try to use a computed one instead. | 1094 // If no location was specified we try to use a computed one instead. |
1095 if (location == NULL && ComputeLocation(&computed_location)) { | 1095 if (location == NULL && ComputeLocation(&computed_location)) { |
1096 location = &computed_location; | 1096 location = &computed_location; |
1097 } | 1097 } |
1098 | 1098 |
1099 if (bootstrapper()->IsActive()) { | 1099 if (false && bootstrapper()->IsActive()) { |
Benedikt Meurer
2016/10/13 05:07:20
Undo this.
caitp
2016/10/13 22:32:44
Done.
| |
1100 // It's not safe to try to make message objects or collect stack traces | 1100 // It's not safe to try to make message objects or collect stack traces |
1101 // while the bootstrapper is active since the infrastructure may not have | 1101 // while the bootstrapper is active since the infrastructure may not have |
1102 // been properly initialized. | 1102 // been properly initialized. |
1103 ReportBootstrappingException(exception_handle, location); | 1103 ReportBootstrappingException(exception_handle, location); |
1104 } else { | 1104 } else { |
1105 Handle<Object> message_obj = CreateMessage(exception_handle, location); | 1105 Handle<Object> message_obj = CreateMessage(exception_handle, location); |
1106 thread_local_top()->pending_message_obj_ = *message_obj; | 1106 thread_local_top()->pending_message_obj_ = *message_obj; |
1107 | 1107 |
1108 // For any exception not caught by JavaScript, even when an external | 1108 // For any exception not caught by JavaScript, even when an external |
1109 // handler is present: | 1109 // handler is present: |
(...skipping 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3381 // Then check whether this scope intercepts. | 3381 // Then check whether this scope intercepts. |
3382 if ((flag & intercept_mask_)) { | 3382 if ((flag & intercept_mask_)) { |
3383 intercepted_flags_ |= flag; | 3383 intercepted_flags_ |= flag; |
3384 return true; | 3384 return true; |
3385 } | 3385 } |
3386 return false; | 3386 return false; |
3387 } | 3387 } |
3388 | 3388 |
3389 } // namespace internal | 3389 } // namespace internal |
3390 } // namespace v8 | 3390 } // namespace v8 |
OLD | NEW |