Chromium Code Reviews| 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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1091 } | 1091 } |
| 1092 | 1092 |
| 1093 // Generate the message if required. | 1093 // Generate the message if required. |
| 1094 if (requires_message && !rethrowing_message) { | 1094 if (requires_message && !rethrowing_message) { |
| 1095 MessageLocation computed_location; | 1095 MessageLocation computed_location; |
| 1096 // If no location was specified we try to use a computed one instead. | 1096 // If no location was specified we try to use a computed one instead. |
| 1097 if (location == NULL && ComputeLocation(&computed_location)) { | 1097 if (location == NULL && ComputeLocation(&computed_location)) { |
| 1098 location = &computed_location; | 1098 location = &computed_location; |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 if (bootstrapper()->IsActive()) { | 1101 if (false && bootstrapper()->IsActive()) { |
|
Benedikt Meurer
2016/10/17 04:02:42
Please undo this change.
caitp
2016/10/18 00:16:50
Done (again T_T).
| |
| 1102 // It's not safe to try to make message objects or collect stack traces | 1102 // It's not safe to try to make message objects or collect stack traces |
| 1103 // while the bootstrapper is active since the infrastructure may not have | 1103 // while the bootstrapper is active since the infrastructure may not have |
| 1104 // been properly initialized. | 1104 // been properly initialized. |
| 1105 ReportBootstrappingException(exception_handle, location); | 1105 ReportBootstrappingException(exception_handle, location); |
| 1106 } else { | 1106 } else { |
| 1107 Handle<Object> message_obj = CreateMessage(exception_handle, location); | 1107 Handle<Object> message_obj = CreateMessage(exception_handle, location); |
| 1108 thread_local_top()->pending_message_obj_ = *message_obj; | 1108 thread_local_top()->pending_message_obj_ = *message_obj; |
| 1109 | 1109 |
| 1110 // For any exception not caught by JavaScript, even when an external | 1110 // For any exception not caught by JavaScript, even when an external |
| 1111 // handler is present: | 1111 // handler is present: |
| (...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3457 // Then check whether this scope intercepts. | 3457 // Then check whether this scope intercepts. |
| 3458 if ((flag & intercept_mask_)) { | 3458 if ((flag & intercept_mask_)) { |
| 3459 intercepted_flags_ |= flag; | 3459 intercepted_flags_ |= flag; |
| 3460 return true; | 3460 return true; |
| 3461 } | 3461 } |
| 3462 return false; | 3462 return false; |
| 3463 } | 3463 } |
| 3464 | 3464 |
| 3465 } // namespace internal | 3465 } // namespace internal |
| 3466 } // namespace v8 | 3466 } // namespace v8 |
| OLD | NEW |