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

Side by Side Diff: src/arm64/code-stubs-arm64.cc

Issue 2378773013: [WASM] Implements catch for the wasm low level exception mechanism. (Closed)
Patch Set: updates effect dependencies. Created 4 years, 2 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 | « no previous file | src/compiler/instruction-selector.cc » ('j') | src/compiler/wasm-compiler.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 // (except for the return address slot). However, we don't need to initialize 1082 // (except for the return address slot). However, we don't need to initialize
1083 // jssp because the throw method will immediately overwrite it when it 1083 // jssp because the throw method will immediately overwrite it when it
1084 // unwinds the stack. 1084 // unwinds the stack.
1085 __ SetStackPointer(jssp); 1085 __ SetStackPointer(jssp);
1086 1086
1087 // Retrieve the handler context, SP and FP. 1087 // Retrieve the handler context, SP and FP.
1088 __ Mov(cp, Operand(pending_handler_context_address)); 1088 __ Mov(cp, Operand(pending_handler_context_address));
1089 __ Ldr(cp, MemOperand(cp)); 1089 __ Ldr(cp, MemOperand(cp));
1090 __ Mov(jssp, Operand(pending_handler_sp_address)); 1090 __ Mov(jssp, Operand(pending_handler_sp_address));
1091 __ Ldr(jssp, MemOperand(jssp)); 1091 __ Ldr(jssp, MemOperand(jssp));
1092 __ Mov(csp, jssp);
1092 __ Mov(fp, Operand(pending_handler_fp_address)); 1093 __ Mov(fp, Operand(pending_handler_fp_address));
1093 __ Ldr(fp, MemOperand(fp)); 1094 __ Ldr(fp, MemOperand(fp));
1094 1095
1095 // If the handler is a JS frame, restore the context to the frame. Note that 1096 // If the handler is a JS frame, restore the context to the frame. Note that
1096 // the context will be set to (cp == 0) for non-JS frames. 1097 // the context will be set to (cp == 0) for non-JS frames.
1097 Label not_js_frame; 1098 Label not_js_frame;
1098 __ Cbz(cp, &not_js_frame); 1099 __ Cbz(cp, &not_js_frame);
1099 __ Str(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 1100 __ Str(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
1100 __ Bind(&not_js_frame); 1101 __ Bind(&not_js_frame);
1101 1102
(...skipping 4141 matching lines...) Expand 10 before | Expand all | Expand 10 after
5243 kStackUnwindSpace, NULL, spill_offset, 5244 kStackUnwindSpace, NULL, spill_offset,
5244 return_value_operand, NULL); 5245 return_value_operand, NULL);
5245 } 5246 }
5246 5247
5247 #undef __ 5248 #undef __
5248 5249
5249 } // namespace internal 5250 } // namespace internal
5250 } // namespace v8 5251 } // namespace v8
5251 5252
5252 #endif // V8_TARGET_ARCH_ARM64 5253 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | src/compiler/instruction-selector.cc » ('j') | src/compiler/wasm-compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698