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

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

Issue 718393005: Enable the profiler on the simulator (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/simulator_arm64.cc ('k') | runtime/vm/simulator_mips.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) 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 MIPS instructions if we are not generating a native 5 // Declares a Simulator for MIPS instructions if we are not generating a native
6 // MIPS binary. This Simulator allows us to run and debug MIPS code generation 6 // MIPS binary. This Simulator allows us to run and debug MIPS code generation
7 // on regular desktop machines. 7 // on 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 MIPS HW platform. 10 // on a MIPS HW platform.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 kRuntimeCall, 122 kRuntimeCall,
123 kLeafRuntimeCall, 123 kLeafRuntimeCall,
124 kLeafFloatRuntimeCall, 124 kLeafFloatRuntimeCall,
125 kBootstrapNativeCall, 125 kBootstrapNativeCall,
126 kNativeCall 126 kNativeCall
127 }; 127 };
128 static uword RedirectExternalReference(uword function, 128 static uword RedirectExternalReference(uword function,
129 CallKind call_kind, 129 CallKind call_kind,
130 int argument_count); 130 int argument_count);
131 131
132 static uword FunctionForRedirect(uword redirect);
133
132 void Longjmp(uword pc, 134 void Longjmp(uword pc,
133 uword sp, 135 uword sp,
134 uword fp, 136 uword fp,
135 RawObject* raw_exception, 137 RawObject* raw_exception,
136 RawObject* raw_stacktrace, 138 RawObject* raw_stacktrace,
137 Isolate* isolate); 139 Isolate* isolate);
138 140
139 private: 141 private:
140 // A pc value used to signal the simulator to stop execution. Generally 142 // A pc value used to signal the simulator to stop execution. Generally
141 // the ra is set to this value on transition from native C code to 143 // the ra is set to this value on transition from native C code to
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 252 }
251 253
252 friend class SimulatorDebugger; 254 friend class SimulatorDebugger;
253 friend class SimulatorSetjmpBuffer; 255 friend class SimulatorSetjmpBuffer;
254 DISALLOW_COPY_AND_ASSIGN(Simulator); 256 DISALLOW_COPY_AND_ASSIGN(Simulator);
255 }; 257 };
256 258
257 } // namespace dart 259 } // namespace dart
258 260
259 #endif // VM_SIMULATOR_MIPS_H_ 261 #endif // VM_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm64.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698