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

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

Issue 258133002: Ensures that stubs added to each object pool on x64 (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/assembler_x64.cc ('k') | tests/standalone/io/directory_list_sync_test.dart » ('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
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Is it permitted for the stubs above to refer to Object::null(), which is 44 // 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. 45 // 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, 46 // 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 47 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi
48 // does not require relocation. 48 // does not require relocation.
49 49
50 // List of stubs created per isolate, these stubs could potentially contain 50 // List of stubs created per isolate, these stubs could potentially contain
51 // embedded objects and hence cannot be shared across isolates. 51 // embedded objects and hence cannot be shared across isolates.
52 #define STUB_CODE_LIST(V) \ 52 #define STUB_CODE_LIST(V) \
53 V(InvokeDartCode) \
54 V(AllocateContext) \ 53 V(AllocateContext) \
55 V(UpdateStoreBuffer) \ 54 V(UpdateStoreBuffer) \
56 V(OneArgCheckInlineCache) \ 55 V(OneArgCheckInlineCache) \
57 V(TwoArgsCheckInlineCache) \ 56 V(TwoArgsCheckInlineCache) \
58 V(ThreeArgsCheckInlineCache) \ 57 V(ThreeArgsCheckInlineCache) \
59 V(OneArgOptimizedCheckInlineCache) \ 58 V(OneArgOptimizedCheckInlineCache) \
60 V(TwoArgsOptimizedCheckInlineCache) \ 59 V(TwoArgsOptimizedCheckInlineCache) \
61 V(ThreeArgsOptimizedCheckInlineCache) \ 60 V(ThreeArgsOptimizedCheckInlineCache) \
62 V(ClosureCallInlineCache) \ 61 V(ClosureCallInlineCache) \
63 V(MegamorphicCall) \ 62 V(MegamorphicCall) \
64 V(ZeroArgsUnoptimizedStaticCall) \ 63 V(ZeroArgsUnoptimizedStaticCall) \
65 V(TwoArgsUnoptimizedStaticCall) \ 64 V(TwoArgsUnoptimizedStaticCall) \
66 V(OptimizeFunction) \ 65 V(OptimizeFunction) \
66 V(InvokeDartCode) \
67 67
68 // class StubEntry is used to describe stub methods generated in dart to 68 // class StubEntry is used to describe stub methods generated in dart to
69 // abstract out common code executed from generated dart code. 69 // abstract out common code executed from generated dart code.
70 class StubEntry { 70 class StubEntry {
71 public: 71 public:
72 StubEntry(const char* name, const Code& code); 72 StubEntry(const char* name, const Code& code);
73 ~StubEntry() {} 73 ~StubEntry() {}
74 74
75 const ExternalLabel& label() const { return label_; } 75 const ExternalLabel& label() const { return label_; }
76 uword EntryPoint() const { return entry_point_; } 76 uword EntryPoint() const { return entry_point_; }
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 Assembler* assembler, 202 Assembler* assembler,
203 const Register left, 203 const Register left,
204 const Register right, 204 const Register right,
205 const Register temp1 = kNoRegister, 205 const Register temp1 = kNoRegister,
206 const Register temp2 = kNoRegister); 206 const Register temp2 = kNoRegister);
207 }; 207 };
208 208
209 } // namespace dart 209 } // namespace dart
210 210
211 #endif // VM_STUB_CODE_H_ 211 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | tests/standalone/io/directory_list_sync_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698