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

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

Issue 2383613002: Revert of [WASM] Implements catch for the wasm low level exception mechanism. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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') | no next file with comments »
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);
1093 __ Mov(fp, Operand(pending_handler_fp_address)); 1092 __ Mov(fp, Operand(pending_handler_fp_address));
1094 __ Ldr(fp, MemOperand(fp)); 1093 __ Ldr(fp, MemOperand(fp));
1095 1094
1096 // If the handler is a JS frame, restore the context to the frame. Note that 1095 // If the handler is a JS frame, restore the context to the frame. Note that
1097 // the context will be set to (cp == 0) for non-JS frames. 1096 // the context will be set to (cp == 0) for non-JS frames.
1098 Label not_js_frame; 1097 Label not_js_frame;
1099 __ Cbz(cp, &not_js_frame); 1098 __ Cbz(cp, &not_js_frame);
1100 __ Str(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 1099 __ Str(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
1101 __ Bind(&not_js_frame); 1100 __ Bind(&not_js_frame);
1102 1101
(...skipping 4172 matching lines...) Expand 10 before | Expand all | Expand 10 after
5275 kStackUnwindSpace, NULL, spill_offset, 5274 kStackUnwindSpace, NULL, spill_offset,
5276 return_value_operand, NULL); 5275 return_value_operand, NULL);
5277 } 5276 }
5278 5277
5279 #undef __ 5278 #undef __
5280 5279
5281 } // namespace internal 5280 } // namespace internal
5282 } // namespace v8 5281 } // namespace v8
5283 5282
5284 #endif // V8_TARGET_ARCH_ARM64 5283 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698