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

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

Issue 2250823002: Partially implement DBC profiler. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 4 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 | « runtime/vm/signal_handler_macos.cc ('k') | runtime/vm/simulator_arm64.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Declares a Simulator for ARM instructions if we are not generating a native 5 // Declares a Simulator for ARM instructions if we are not generating a native
6 // ARM binary. This Simulator allows us to run and debug ARM code generation on 6 // ARM binary. This Simulator allows us to run and debug ARM code generation on
7 // regular desktop machines. 7 // regular desktop machines.
8 // Dart calls into generated code by "calling" the InvokeDartCode stub, 8 // Dart calls into generated code by "calling" the InvokeDartCode stub,
9 // which will start execution in the Simulator or forwards to the real entry 9 // which will start execution in the Simulator or forwards to the real entry
10 // on a ARM HW platform. 10 // on a ARM HW platform.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void set_dregister_bits(DRegister reg, int64_t value); 76 void set_dregister_bits(DRegister reg, int64_t value);
77 int64_t get_dregister_bits(DRegister reg) const; 77 int64_t get_dregister_bits(DRegister reg) const;
78 78
79 // Accessors to the internal simulator stack base and top. 79 // Accessors to the internal simulator stack base and top.
80 uword StackBase() const { return reinterpret_cast<uword>(stack_); } 80 uword StackBase() const { return reinterpret_cast<uword>(stack_); }
81 uword StackTop() const; 81 uword StackTop() const;
82 82
83 // Accessor to the instruction counter. 83 // Accessor to the instruction counter.
84 uint64_t get_icount() const { return icount_; } 84 uint64_t get_icount() const { return icount_; }
85 85
86 // The isolate's top_exit_frame_info refers to a Dart frame in the simulator 86 // The thread's top_exit_frame_info refers to a Dart frame in the simulator
87 // stack. The simulator's top_exit_frame_info refers to a C++ frame in the 87 // stack. The simulator's top_exit_frame_info refers to a C++ frame in the
88 // native stack. 88 // native stack.
89 uword top_exit_frame_info() const { return top_exit_frame_info_; } 89 uword top_exit_frame_info() const { return top_exit_frame_info_; }
90 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; } 90 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; }
91 91
92 // Call on program start. 92 // Call on program start.
93 static void InitOnce(); 93 static void InitOnce();
94 94
95 // Dart generally calls into generated code with 4 parameters. This is a 95 // Dart generally calls into generated code with 4 parameters. This is a
96 // convenience function, which sets up the simulator state and grabs the 96 // convenience function, which sets up the simulator state and grabs the
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 281 }
282 282
283 friend class SimulatorDebugger; 283 friend class SimulatorDebugger;
284 friend class SimulatorSetjmpBuffer; 284 friend class SimulatorSetjmpBuffer;
285 DISALLOW_COPY_AND_ASSIGN(Simulator); 285 DISALLOW_COPY_AND_ASSIGN(Simulator);
286 }; 286 };
287 287
288 } // namespace dart 288 } // namespace dart
289 289
290 #endif // VM_SIMULATOR_ARM_H_ 290 #endif // VM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/signal_handler_macos.cc ('k') | runtime/vm/simulator_arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698