OLD | NEW |
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 24 matching lines...) Expand all Loading... |
35 V(BreakpointRuntime) \ | 35 V(BreakpointRuntime) \ |
36 V(BreakpointStatic) \ | 36 V(BreakpointStatic) \ |
37 V(BreakpointReturn) \ | 37 V(BreakpointReturn) \ |
38 V(Subtype1TestCache) \ | 38 V(Subtype1TestCache) \ |
39 V(Subtype2TestCache) \ | 39 V(Subtype2TestCache) \ |
40 V(Subtype3TestCache) \ | 40 V(Subtype3TestCache) \ |
41 V(GetStackPointer) \ | 41 V(GetStackPointer) \ |
42 V(JumpToExceptionHandler) \ | 42 V(JumpToExceptionHandler) \ |
43 V(UnoptimizedIdenticalWithNumberCheck) \ | 43 V(UnoptimizedIdenticalWithNumberCheck) \ |
44 V(OptimizedIdenticalWithNumberCheck) \ | 44 V(OptimizedIdenticalWithNumberCheck) \ |
| 45 V(CompileFunctionRuntimeCall) \ |
45 | 46 |
46 // Is it permitted for the stubs above to refer to Object::null(), which is | 47 // Is it permitted for the stubs above to refer to Object::null(), which is |
47 // allocated in the VM isolate and shared across all isolates. | 48 // allocated in the VM isolate and shared across all isolates. |
48 // However, in cases where a simple GC-safe placeholder is needed on the stack, | 49 // However, in cases where a simple GC-safe placeholder is needed on the stack, |
49 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi | 50 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi |
50 // does not require relocation. | 51 // does not require relocation. |
51 | 52 |
52 // List of stubs created per isolate, these stubs could potentially contain | 53 // List of stubs created per isolate, these stubs could potentially contain |
53 // embedded objects and hence cannot be shared across isolates. | 54 // embedded objects and hence cannot be shared across isolates. |
54 #define STUB_CODE_LIST(V) \ | 55 #define STUB_CODE_LIST(V) \ |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 Assembler* assembler, | 208 Assembler* assembler, |
208 const Register left, | 209 const Register left, |
209 const Register right, | 210 const Register right, |
210 const Register temp1 = kNoRegister, | 211 const Register temp1 = kNoRegister, |
211 const Register temp2 = kNoRegister); | 212 const Register temp2 = kNoRegister); |
212 }; | 213 }; |
213 | 214 |
214 } // namespace dart | 215 } // namespace dart |
215 | 216 |
216 #endif // VM_STUB_CODE_H_ | 217 #endif // VM_STUB_CODE_H_ |
OLD | NEW |