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/stub_code.h

Issue 284013002: Improve performance of stubcode based array allocation moving stub to isolate specific area. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/intrinsifier_x64.cc ('k') | runtime/vm/stub_code_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) 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 18
19 19
20 // List of stubs created in the VM isolate, these stubs are shared by different 20 // List of stubs created in the VM isolate, these stubs are shared by different
21 // isolates running in this dart process. 21 // isolates running in this dart process.
22 #define VM_STUB_CODE_LIST(V) \ 22 #define VM_STUB_CODE_LIST(V) \
23 V(PrintStopMessage) \ 23 V(PrintStopMessage) \
24 V(CallToRuntime) \ 24 V(CallToRuntime) \
25 V(LazyCompile) \ 25 V(LazyCompile) \
26 V(CallBootstrapCFunction) \ 26 V(CallBootstrapCFunction) \
27 V(CallNativeCFunction) \ 27 V(CallNativeCFunction) \
28 V(AllocateArray) \
29 V(CallNoSuchMethodFunction) \
30 V(CallStaticFunction) \ 28 V(CallStaticFunction) \
31 V(FixCallersTarget) \ 29 V(FixCallersTarget) \
32 V(Deoptimize) \ 30 V(Deoptimize) \
33 V(DeoptimizeLazy) \ 31 V(DeoptimizeLazy) \
34 V(BreakpointRuntime) \ 32 V(BreakpointRuntime) \
35 V(DebugStepCheck) \ 33 V(DebugStepCheck) \
36 V(Subtype1TestCache) \ 34 V(Subtype1TestCache) \
37 V(Subtype2TestCache) \ 35 V(Subtype2TestCache) \
38 V(Subtype3TestCache) \ 36 V(Subtype3TestCache) \
39 V(GetStackPointer) \ 37 V(GetStackPointer) \
40 V(JumpToExceptionHandler) \ 38 V(JumpToExceptionHandler) \
41 V(UnoptimizedIdenticalWithNumberCheck) \ 39 V(UnoptimizedIdenticalWithNumberCheck) \
42 V(OptimizedIdenticalWithNumberCheck) \ 40 V(OptimizedIdenticalWithNumberCheck) \
43 41
44 // Is it permitted for the stubs above to refer to Object::null(), which is 42 // Is it permitted for the stubs above to refer to Object::null(), which is
45 // allocated in the VM isolate and shared across all isolates. 43 // allocated in the VM isolate and shared across all isolates.
46 // However, in cases where a simple GC-safe placeholder is needed on the stack, 44 // However, in cases where a simple GC-safe placeholder is needed on the stack,
47 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi 45 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi
48 // does not require relocation. 46 // does not require relocation.
49 47
50 // List of stubs created per isolate, these stubs could potentially contain 48 // List of stubs created per isolate, these stubs could potentially contain
51 // embedded objects and hence cannot be shared across isolates. 49 // embedded objects and hence cannot be shared across isolates.
52 #define STUB_CODE_LIST(V) \ 50 #define STUB_CODE_LIST(V) \
51 V(AllocateArray) \
52 V(CallNoSuchMethodFunction) \
53 V(AllocateContext) \ 53 V(AllocateContext) \
54 V(UpdateStoreBuffer) \ 54 V(UpdateStoreBuffer) \
55 V(OneArgCheckInlineCache) \ 55 V(OneArgCheckInlineCache) \
56 V(TwoArgsCheckInlineCache) \ 56 V(TwoArgsCheckInlineCache) \
57 V(ThreeArgsCheckInlineCache) \ 57 V(ThreeArgsCheckInlineCache) \
58 V(OneArgOptimizedCheckInlineCache) \ 58 V(OneArgOptimizedCheckInlineCache) \
59 V(TwoArgsOptimizedCheckInlineCache) \ 59 V(TwoArgsOptimizedCheckInlineCache) \
60 V(ThreeArgsOptimizedCheckInlineCache) \ 60 V(ThreeArgsOptimizedCheckInlineCache) \
61 V(ClosureCallInlineCache) \ 61 V(ClosureCallInlineCache) \
62 V(ZeroArgsUnoptimizedStaticCall) \ 62 V(ZeroArgsUnoptimizedStaticCall) \
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 Assembler* assembler, 201 Assembler* assembler,
202 const Register left, 202 const Register left,
203 const Register right, 203 const Register right,
204 const Register temp1 = kNoRegister, 204 const Register temp1 = kNoRegister,
205 const Register temp2 = kNoRegister); 205 const Register temp2 = kNoRegister);
206 }; 206 };
207 207
208 } // namespace dart 208 } // namespace dart
209 209
210 #endif // VM_STUB_CODE_H_ 210 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698