| 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 21 matching lines...) Expand all Loading... |
| 32 V(Deoptimize) \ | 32 V(Deoptimize) \ |
| 33 V(DeoptimizeLazy) \ | 33 V(DeoptimizeLazy) \ |
| 34 V(BreakpointRuntime) \ | 34 V(BreakpointRuntime) \ |
| 35 V(BreakpointStatic) \ | 35 V(BreakpointStatic) \ |
| 36 V(BreakpointReturn) \ | 36 V(BreakpointReturn) \ |
| 37 V(Subtype1TestCache) \ | 37 V(Subtype1TestCache) \ |
| 38 V(Subtype2TestCache) \ | 38 V(Subtype2TestCache) \ |
| 39 V(Subtype3TestCache) \ | 39 V(Subtype3TestCache) \ |
| 40 V(GetStackPointer) \ | 40 V(GetStackPointer) \ |
| 41 V(JumpToExceptionHandler) \ | 41 V(JumpToExceptionHandler) \ |
| 42 V(IdenticalWithNumberCheck) \ | 42 V(UnoptimizedIdenticalWithNumberCheck) \ |
| 43 V(OptimizedIdenticalWithNumberCheck) \ |
| 43 | 44 |
| 44 // Is it permitted for the stubs above to refer to Object::null(), which is | 45 // 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. | 46 // 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, | 47 // 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 | 48 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi |
| 48 // does not require relocation. | 49 // does not require relocation. |
| 49 | 50 |
| 50 // List of stubs created per isolate, these stubs could potentially contain | 51 // List of stubs created per isolate, these stubs could potentially contain |
| 51 // embedded objects and hence cannot be shared across isolates. | 52 // embedded objects and hence cannot be shared across isolates. |
| 52 #define STUB_CODE_LIST(V) \ | 53 #define STUB_CODE_LIST(V) \ |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 static void GenerateMegamorphicMissStub(Assembler* assembler); | 191 static void GenerateMegamorphicMissStub(Assembler* assembler); |
| 191 static void GenerateAllocationStubForClass(Assembler* assembler, | 192 static void GenerateAllocationStubForClass(Assembler* assembler, |
| 192 const Class& cls); | 193 const Class& cls); |
| 193 static void GenerateAllocationStubForClosure(Assembler* assembler, | 194 static void GenerateAllocationStubForClosure(Assembler* assembler, |
| 194 const Function& func); | 195 const Function& func); |
| 195 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, | 196 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, |
| 196 intptr_t num_args); | 197 intptr_t num_args); |
| 197 static void GenerateUsageCounterIncrement(Assembler* assembler, | 198 static void GenerateUsageCounterIncrement(Assembler* assembler, |
| 198 Register temp_reg); | 199 Register temp_reg); |
| 199 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); | 200 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); |
| 201 |
| 202 static void GenerateIdenticalWithNumberCheckStub( |
| 203 Assembler* assembler, |
| 204 const Register left, |
| 205 const Register right, |
| 206 const Register temp1 = kNoRegister, |
| 207 const Register temp2 = kNoRegister); |
| 200 }; | 208 }; |
| 201 | 209 |
| 202 } // namespace dart | 210 } // namespace dart |
| 203 | 211 |
| 204 #endif // VM_STUB_CODE_H_ | 212 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |