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

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

Issue 1858283002: Initial SIMDBC interpreter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: cleanup Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_STUB_CODE_H_ 5 #ifndef VM_STUB_CODE_H_
6 #define VM_STUB_CODE_H_ 6 #define VM_STUB_CODE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 // Forward declarations. 13 // Forward declarations.
14 class Code; 14 class Code;
15 class Isolate; 15 class Isolate;
16 class ObjectPointerVisitor; 16 class ObjectPointerVisitor;
17 class RawCode; 17 class RawCode;
18 class SnapshotReader; 18 class SnapshotReader;
19 class SnapshotWriter; 19 class SnapshotWriter;
20 20
21
22 // List of stubs created in the VM isolate, these stubs are shared by different 21 // List of stubs created in the VM isolate, these stubs are shared by different
23 // isolates running in this dart process. 22 // isolates running in this dart process.
23 #if defined(TARGET_ARCH_DBC)
24 #define VM_STUB_CODE_LIST(V) \
25 V(LazyCompile) \
26 V(FixCallersTarget) \
27
28 #else
24 #define VM_STUB_CODE_LIST(V) \ 29 #define VM_STUB_CODE_LIST(V) \
25 V(GetStackPointer) \ 30 V(GetStackPointer) \
26 V(JumpToExceptionHandler) \ 31 V(JumpToExceptionHandler) \
27 V(UpdateStoreBuffer) \ 32 V(UpdateStoreBuffer) \
28 V(PrintStopMessage) \ 33 V(PrintStopMessage) \
29 V(CallToRuntime) \ 34 V(CallToRuntime) \
30 V(LazyCompile) \ 35 V(LazyCompile) \
31 V(CallBootstrapCFunction) \ 36 V(CallBootstrapCFunction) \
32 V(CallNativeCFunction) \ 37 V(CallNativeCFunction) \
33 V(FixCallersTarget) \ 38 V(FixCallersTarget) \
(...skipping 22 matching lines...) Expand all
56 V(OneArgOptimizedCheckInlineCache) \ 61 V(OneArgOptimizedCheckInlineCache) \
57 V(TwoArgsOptimizedCheckInlineCache) \ 62 V(TwoArgsOptimizedCheckInlineCache) \
58 V(ZeroArgsUnoptimizedStaticCall) \ 63 V(ZeroArgsUnoptimizedStaticCall) \
59 V(OneArgUnoptimizedStaticCall) \ 64 V(OneArgUnoptimizedStaticCall) \
60 V(TwoArgsUnoptimizedStaticCall) \ 65 V(TwoArgsUnoptimizedStaticCall) \
61 V(Subtype1TestCache) \ 66 V(Subtype1TestCache) \
62 V(Subtype2TestCache) \ 67 V(Subtype2TestCache) \
63 V(Subtype3TestCache) \ 68 V(Subtype3TestCache) \
64 V(CallClosureNoSuchMethod) \ 69 V(CallClosureNoSuchMethod) \
65 70
71 #endif
72
66 // Is it permitted for the stubs above to refer to Object::null(), which is 73 // Is it permitted for the stubs above to refer to Object::null(), which is
67 // allocated in the VM isolate and shared across all isolates. 74 // allocated in the VM isolate and shared across all isolates.
68 // However, in cases where a simple GC-safe placeholder is needed on the stack, 75 // However, in cases where a simple GC-safe placeholder is needed on the stack,
69 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi 76 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi
70 // does not require relocation. 77 // does not require relocation.
71 78
72 // class StubEntry is used to describe stub methods generated in dart to 79 // class StubEntry is used to describe stub methods generated in dart to
73 // abstract out common code executed from generated dart code. 80 // abstract out common code executed from generated dart code.
74 class StubEntry { 81 class StubEntry {
75 public: 82 public:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 191
185 192
186 enum DeoptStubKind { 193 enum DeoptStubKind {
187 kLazyDeopt, 194 kLazyDeopt,
188 kEagerDeopt 195 kEagerDeopt
189 }; 196 };
190 197
191 } // namespace dart 198 } // namespace dart
192 199
193 #endif // VM_STUB_CODE_H_ 200 #endif // VM_STUB_CODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698