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

Side by Side Diff: src/frames.h

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
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
1059 // Determine the code for the frame. 1063 // Determine the code for the frame.
1060 Code* unchecked_code() const override; 1064 Code* unchecked_code() const override;
1061 1065
1062 // Accessors. 1066 // Accessors.
1063 Object* wasm_obj() const; 1067 Object* wasm_obj() const;
1064 uint32_t function_index() const; 1068 uint32_t function_index() const;
1065 Script* script() const override; 1069 Script* script() const override;
1066 1070
1067 static WasmFrame* cast(StackFrame* frame) { 1071 static WasmFrame* cast(StackFrame* frame) {
1068 DCHECK(frame->is_wasm()); 1072 DCHECK(frame->is_wasm());
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 1321
1318 1322
1319 // Reads all frames on the current stack and copies them into the current 1323 // Reads all frames on the current stack and copies them into the current
1320 // zone memory. 1324 // zone memory.
1321 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 1325 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
1322 1326
1323 } // namespace internal 1327 } // namespace internal
1324 } // namespace v8 1328 } // namespace v8
1325 1329
1326 #endif // V8_FRAMES_H_ 1330 #endif // V8_FRAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698