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

Side by Side Diff: runtime/vm/simulator_dbc.h

Issue 2506503002: Revert "Revert "JumpToFrame refactor"" + Fix (Closed)
Patch Set: new client Created 4 years, 1 month 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 | « runtime/vm/simulator_arm64.cc ('k') | runtime/vm/simulator_dbc.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 (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_VM_SIMULATOR_DBC_H_ 5 #ifndef RUNTIME_VM_SIMULATOR_DBC_H_
6 #define RUNTIME_VM_SIMULATOR_DBC_H_ 6 #define RUNTIME_VM_SIMULATOR_DBC_H_
7 7
8 #ifndef RUNTIME_VM_SIMULATOR_H_ 8 #ifndef RUNTIME_VM_SIMULATOR_H_
9 #error Do not include simulator_dbc.h directly; use simulator.h. 9 #error Do not include simulator_dbc.h directly; use simulator.h.
10 #endif 10 #endif
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; } 57 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; }
58 58
59 // Call on program start. 59 // Call on program start.
60 static void InitOnce(); 60 static void InitOnce();
61 61
62 RawObject* Call(const Code& code, 62 RawObject* Call(const Code& code,
63 const Array& arguments_descriptor, 63 const Array& arguments_descriptor,
64 const Array& arguments, 64 const Array& arguments,
65 Thread* thread); 65 Thread* thread);
66 66
67 void Longjmp(uword pc, 67 void JumpToFrame(uword pc, uword sp, uword fp, Thread* thread);
68 uword sp,
69 uword fp,
70 RawObject* raw_exception,
71 RawObject* raw_stacktrace,
72 Thread* thread);
73 68
74 uword get_sp() const { return reinterpret_cast<uword>(sp_); } 69 uword get_sp() const { return reinterpret_cast<uword>(sp_); }
75 uword get_fp() const { return reinterpret_cast<uword>(fp_); } 70 uword get_fp() const { return reinterpret_cast<uword>(fp_); }
76 uword get_pc() const { return reinterpret_cast<uword>(pc_); } 71 uword get_pc() const { return reinterpret_cast<uword>(pc_); }
77 72
78 enum IntrinsicId { 73 enum IntrinsicId {
79 #define V(test_class_name, test_function_name, enum_name, type, fp) \ 74 #define V(test_class_name, test_function_name, enum_name, type, fp) \
80 k##enum_name##Intrinsic, 75 k##enum_name##Intrinsic,
81 ALL_INTRINSICS_LIST(V) GRAPH_INTRINSICS_LIST(V) 76 ALL_INTRINSICS_LIST(V) GRAPH_INTRINSICS_LIST(V)
82 #undef V 77 #undef V
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 last_setjmp_buffer_ = buffer; 161 last_setjmp_buffer_ = buffer;
167 } 162 }
168 163
169 friend class SimulatorSetjmpBuffer; 164 friend class SimulatorSetjmpBuffer;
170 DISALLOW_COPY_AND_ASSIGN(Simulator); 165 DISALLOW_COPY_AND_ASSIGN(Simulator);
171 }; 166 };
172 167
173 } // namespace dart 168 } // namespace dart
174 169
175 #endif // RUNTIME_VM_SIMULATOR_DBC_H_ 170 #endif // RUNTIME_VM_SIMULATOR_DBC_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm64.cc ('k') | runtime/vm/simulator_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698