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

Side by Side Diff: src/frames.h

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 | « src/compiler/wasm-compiler.cc ('k') | src/frames.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 #ifndef V8_FRAMES_H_ 5 #ifndef V8_FRAMES_H_
6 #define V8_FRAMES_H_ 6 #define V8_FRAMES_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 public: 1049 public:
1050 Type type() const override { return WASM; } 1050 Type type() const override { return WASM; }
1051 1051
1052 // GC support. 1052 // GC support.
1053 void Iterate(ObjectVisitor* v) const override; 1053 void Iterate(ObjectVisitor* v) const override;
1054 1054
1055 // Printing support. 1055 // Printing support.
1056 void Print(StringStream* accumulator, PrintMode mode, 1056 void Print(StringStream* accumulator, PrintMode mode,
1057 int index) const override; 1057 int index) const override;
1058 1058
1059 // Lookup exception handler for current {pc}, returns -1 if none found. Also
1060 // returns the stack slot count of the entire frame.
1061 int LookupExceptionHandlerInTable(int* data);
1062
1063 // Determine the code for the frame. 1059 // Determine the code for the frame.
1064 Code* unchecked_code() const override; 1060 Code* unchecked_code() const override;
1065 1061
1066 // Accessors. 1062 // Accessors.
1067 Object* wasm_obj() const; 1063 Object* wasm_obj() const;
1068 uint32_t function_index() const; 1064 uint32_t function_index() const;
1069 Script* script() const override; 1065 Script* script() const override;
1070 1066
1071 static WasmFrame* cast(StackFrame* frame) { 1067 static WasmFrame* cast(StackFrame* frame) {
1072 DCHECK(frame->is_wasm()); 1068 DCHECK(frame->is_wasm());
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 1317
1322 1318
1323 // Reads all frames on the current stack and copies them into the current 1319 // Reads all frames on the current stack and copies them into the current
1324 // zone memory. 1320 // zone memory.
1325 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 1321 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
1326 1322
1327 } // namespace internal 1323 } // namespace internal
1328 } // namespace v8 1324 } // namespace v8
1329 1325
1330 #endif // V8_FRAMES_H_ 1326 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698