Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: src/isolate.cc

Issue 2247353005: [builtins] support exception handling in TFJ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/raw-machine-assembler.cc ('k') | test/cctest/test-code-stub-assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 offset = js_frame->LookupExceptionHandlerInTable(&stack_slots, nullptr); 1219 offset = js_frame->LookupExceptionHandlerInTable(&stack_slots, nullptr);
1220 if (offset >= 0) { 1220 if (offset >= 0) {
1221 // Compute the stack pointer from the frame pointer. This ensures that 1221 // Compute the stack pointer from the frame pointer. This ensures that
1222 // argument slots on the stack are dropped as returning would. 1222 // argument slots on the stack are dropped as returning would.
1223 Address return_sp = frame->fp() + 1223 Address return_sp = frame->fp() +
1224 StandardFrameConstants::kFixedFrameSizeAboveFp - 1224 StandardFrameConstants::kFixedFrameSizeAboveFp -
1225 stack_slots * kPointerSize; 1225 stack_slots * kPointerSize;
1226 1226
1227 // Gather information from the frame. 1227 // Gather information from the frame.
1228 code = frame->LookupCode(); 1228 code = frame->LookupCode();
1229 if (code->marked_for_deoptimization()) { 1229
1230 // TODO(bmeurer): Turbofanned BUILTIN frames appear as OPTIMIZED, but
1231 // do not have a code kind of OPTIMIZED_FUNCTION.
1232 if (code->kind() == Code::OPTIMIZED_FUNCTION &&
1233 code->marked_for_deoptimization()) {
1230 // If the target code is lazy deoptimized, we jump to the original 1234 // If the target code is lazy deoptimized, we jump to the original
1231 // return address, but we make a note that we are throwing, so that 1235 // return address, but we make a note that we are throwing, so that
1232 // the deoptimizer can do the right thing. 1236 // the deoptimizer can do the right thing.
1233 offset = static_cast<int>(frame->pc() - code->entry()); 1237 offset = static_cast<int>(frame->pc() - code->entry());
1234 set_deoptimizer_lazy_throw(true); 1238 set_deoptimizer_lazy_throw(true);
1235 } 1239 }
1236 handler_sp = return_sp; 1240 handler_sp = return_sp;
1237 handler_fp = frame->fp(); 1241 handler_fp = frame->fp();
1238 break; 1242 break;
1239 } 1243 }
(...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after
3207 // Then check whether this scope intercepts. 3211 // Then check whether this scope intercepts.
3208 if ((flag & intercept_mask_)) { 3212 if ((flag & intercept_mask_)) {
3209 intercepted_flags_ |= flag; 3213 intercepted_flags_ |= flag;
3210 return true; 3214 return true;
3211 } 3215 }
3212 return false; 3216 return false;
3213 } 3217 }
3214 3218
3215 } // namespace internal 3219 } // namespace internal
3216 } // namespace v8 3220 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/raw-machine-assembler.cc ('k') | test/cctest/test-code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698