| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/execution.h" | 5 #include "src/execution.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 if (FLAG_verify_heap) { | 103 if (FLAG_verify_heap) { |
| 104 value->ObjectVerify(); | 104 value->ObjectVerify(); |
| 105 } | 105 } |
| 106 #endif | 106 #endif |
| 107 | 107 |
| 108 // Update the pending exception flag and return the value. | 108 // Update the pending exception flag and return the value. |
| 109 bool has_exception = value->IsException(); | 109 bool has_exception = value->IsException(); |
| 110 DCHECK(has_exception == isolate->has_pending_exception()); | 110 DCHECK(has_exception == isolate->has_pending_exception()); |
| 111 if (has_exception) { | 111 if (has_exception) { |
| 112 isolate->ReportPendingMessages(); | 112 isolate->ReportPendingMessages(); |
| 113 // Reset stepping state when script exits with uncaught exception. | |
| 114 if (isolate->debug()->is_active()) { | |
| 115 isolate->debug()->ClearStepping(); | |
| 116 } | |
| 117 return MaybeHandle<Object>(); | 113 return MaybeHandle<Object>(); |
| 118 } else { | 114 } else { |
| 119 isolate->clear_pending_message(); | 115 isolate->clear_pending_message(); |
| 120 } | 116 } |
| 121 | 117 |
| 122 return Handle<Object>(value, isolate); | 118 return Handle<Object>(value, isolate); |
| 123 } | 119 } |
| 124 | 120 |
| 125 } // namespace | 121 } // namespace |
| 126 | 122 |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 | 507 |
| 512 isolate_->counters()->stack_interrupts()->Increment(); | 508 isolate_->counters()->stack_interrupts()->Increment(); |
| 513 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 509 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
| 514 isolate_->runtime_profiler()->OptimizeNow(); | 510 isolate_->runtime_profiler()->OptimizeNow(); |
| 515 | 511 |
| 516 return isolate_->heap()->undefined_value(); | 512 return isolate_->heap()->undefined_value(); |
| 517 } | 513 } |
| 518 | 514 |
| 519 } // namespace internal | 515 } // namespace internal |
| 520 } // namespace v8 | 516 } // namespace v8 |
| OLD | NEW |