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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 int stack_slots = 0; // Will contain stack slot count of frame. | 1122 int stack_slots = 0; // Will contain stack slot count of frame. |
1123 offset = js_frame->LookupExceptionHandlerInTable(&stack_slots, NULL); | 1123 offset = js_frame->LookupExceptionHandlerInTable(&stack_slots, NULL); |
1124 if (offset >= 0) { | 1124 if (offset >= 0) { |
1125 // Patch the bytecode offset in the interpreted frame to reflect the | 1125 // Patch the bytecode offset in the interpreted frame to reflect the |
1126 // position of the exception handler. The special builtin below will | 1126 // position of the exception handler. The special builtin below will |
1127 // take care of continuing to dispatch at that position. | 1127 // take care of continuing to dispatch at that position. |
1128 js_frame->PatchBytecodeOffset(static_cast<int>(offset)); | 1128 js_frame->PatchBytecodeOffset(static_cast<int>(offset)); |
1129 offset = 0; | 1129 offset = 0; |
1130 | 1130 |
1131 // Gather information from the frame. | 1131 // Gather information from the frame. |
1132 code = *builtins()->InterpreterEnterExceptionHandler(); | 1132 code = *builtins()->InterpreterEnterBytecodeDispatch(); |
1133 handler_sp = frame->sp(); | 1133 handler_sp = frame->sp(); |
1134 handler_fp = frame->fp(); | 1134 handler_fp = frame->fp(); |
1135 break; | 1135 break; |
1136 } | 1136 } |
1137 } | 1137 } |
1138 | 1138 |
1139 // For JavaScript frames we perform a range lookup in the handler table. | 1139 // For JavaScript frames we perform a range lookup in the handler table. |
1140 if (frame->is_java_script() && catchable_by_js) { | 1140 if (frame->is_java_script() && catchable_by_js) { |
1141 JavaScriptFrame* js_frame = static_cast<JavaScriptFrame*>(frame); | 1141 JavaScriptFrame* js_frame = static_cast<JavaScriptFrame*>(frame); |
1142 int stack_slots = 0; // Will contain operand stack depth of handler. | 1142 int stack_slots = 0; // Will contain operand stack depth of handler. |
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2855 // Then check whether this scope intercepts. | 2855 // Then check whether this scope intercepts. |
2856 if ((flag & intercept_mask_)) { | 2856 if ((flag & intercept_mask_)) { |
2857 intercepted_flags_ |= flag; | 2857 intercepted_flags_ |= flag; |
2858 return true; | 2858 return true; |
2859 } | 2859 } |
2860 return false; | 2860 return false; |
2861 } | 2861 } |
2862 | 2862 |
2863 } // namespace internal | 2863 } // namespace internal |
2864 } // namespace v8 | 2864 } // namespace v8 |
OLD | NEW |