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

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

Issue 22303002: Auto create ApiLocalScope before calling native functions, this ensures that (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/simulator_arm.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 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // domain as other synchronization primitive instructions (e.g. ldrex, strex). 98 // domain as other synchronization primitive instructions (e.g. ldrex, strex).
99 static uword CompareExchange(uword* address, 99 static uword CompareExchange(uword* address,
100 uword compare_value, 100 uword compare_value,
101 uword new_value); 101 uword new_value);
102 102
103 // Runtime and native call support. 103 // Runtime and native call support.
104 enum CallKind { 104 enum CallKind {
105 kRuntimeCall, 105 kRuntimeCall,
106 kLeafRuntimeCall, 106 kLeafRuntimeCall,
107 kLeafFloatRuntimeCall, 107 kLeafFloatRuntimeCall,
108 kBootstrapNativeCall,
108 kNativeCall 109 kNativeCall
109 }; 110 };
110 static uword RedirectExternalReference(uword function, 111 static uword RedirectExternalReference(uword function,
111 CallKind call_kind, 112 CallKind call_kind,
112 int argument_count); 113 int argument_count);
113 114
114 void Longjmp(uword pc, 115 void Longjmp(uword pc,
115 uword sp, 116 uword sp,
116 uword fp, 117 uword fp,
117 RawObject* raw_exception, 118 RawObject* raw_exception,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 } 266 }
266 267
267 friend class SimulatorDebugger; 268 friend class SimulatorDebugger;
268 friend class SimulatorSetjmpBuffer; 269 friend class SimulatorSetjmpBuffer;
269 DISALLOW_COPY_AND_ASSIGN(Simulator); 270 DISALLOW_COPY_AND_ASSIGN(Simulator);
270 }; 271 };
271 272
272 } // namespace dart 273 } // namespace dart
273 274
274 #endif // VM_SIMULATOR_ARM_H_ 275 #endif // VM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698