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

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

Issue 1288953003: Port "Add mapping from address to id for runtime functions." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | runtime/vm/compiler.h » ('j') | runtime/vm/runtime_entry.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 VM_CODE_GENERATOR_H_ 5 #ifndef VM_CODE_GENERATOR_H_
6 #define VM_CODE_GENERATOR_H_ 6 #define VM_CODE_GENERATOR_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/runtime_entry.h" 9 #include "vm/runtime_entry.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 class Array; 13 class Array;
14 template <typename T> class GrowableArray; 14 template <typename T> class GrowableArray;
15 class ICData; 15 class ICData;
16 class Instance; 16 class Instance;
17 17
18 // Declaration of runtime entries called from stub or generated code.
19 DECLARE_RUNTIME_ENTRY(AllocateArray);
20 DECLARE_RUNTIME_ENTRY(AllocateContext);
21 DECLARE_RUNTIME_ENTRY(AllocateObject);
22 DECLARE_RUNTIME_ENTRY(BreakpointRuntimeHandler);
23 DECLARE_RUNTIME_ENTRY(SingleStepHandler);
24 DECLARE_RUNTIME_ENTRY(CloneContext);
25 DECLARE_RUNTIME_ENTRY(Deoptimize);
26 DECLARE_RUNTIME_ENTRY(FixCallersTarget);
27 DECLARE_RUNTIME_ENTRY(FixAllocationStubTarget);
28 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg);
29 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerTwoArgs);
30 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerThreeArgs);
31 DECLARE_RUNTIME_ENTRY(StaticCallMissHandlerOneArg);
32 DECLARE_RUNTIME_ENTRY(StaticCallMissHandlerTwoArgs);
33 DECLARE_RUNTIME_ENTRY(Instanceof);
34 DECLARE_RUNTIME_ENTRY(TypeCheck);
35 DECLARE_RUNTIME_ENTRY(BadTypeError);
36 DECLARE_RUNTIME_ENTRY(NonBoolTypeError);
37 DECLARE_RUNTIME_ENTRY(InstantiateType);
38 DECLARE_RUNTIME_ENTRY(InstantiateTypeArguments);
39 DECLARE_RUNTIME_ENTRY(InvokeClosureNoSuchMethod);
40 DECLARE_RUNTIME_ENTRY(InvokeNoSuchMethodDispatcher);
41 DECLARE_RUNTIME_ENTRY(MegamorphicCacheMissHandler);
42 DECLARE_RUNTIME_ENTRY(OptimizeInvokedFunction);
43 DECLARE_RUNTIME_ENTRY(TraceICCall);
44 DECLARE_RUNTIME_ENTRY(PatchStaticCall);
45 DECLARE_RUNTIME_ENTRY(ReThrow);
46 DECLARE_RUNTIME_ENTRY(StackOverflow);
47 DECLARE_RUNTIME_ENTRY(Throw);
48 DECLARE_RUNTIME_ENTRY(TraceFunctionEntry);
49 DECLARE_RUNTIME_ENTRY(TraceFunctionExit);
50 DECLARE_RUNTIME_ENTRY(DeoptimizeMaterialize);
51 DECLARE_RUNTIME_ENTRY(UpdateFieldCid);
52 DECLARE_RUNTIME_ENTRY(InitStaticField);
53 DECLARE_RUNTIME_ENTRY(GrowRegExpStack);
54
55 const char* DeoptReasonToCString(ICData::DeoptReasonId deopt_reason); 18 const char* DeoptReasonToCString(ICData::DeoptReasonId deopt_reason);
56 19
57 void DeoptimizeAt(const Code& optimized_code, uword pc); 20 void DeoptimizeAt(const Code& optimized_code, uword pc);
58 void DeoptimizeFunctionsOnStack(); 21 void DeoptimizeFunctionsOnStack();
59 22
60 double DartModulo(double a, double b); 23 double DartModulo(double a, double b);
61 void SinCos(double arg, double* sin_res, double* cos_res); 24 void SinCos(double arg, double* sin_res, double* cos_res);
62 25
63 } // namespace dart 26 } // namespace dart
64 27
65 #endif // VM_CODE_GENERATOR_H_ 28 #endif // VM_CODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/compiler.h » ('j') | runtime/vm/runtime_entry.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698