| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // This dummy field is needed so that we can initialize | 193 // This dummy field is needed so that we can initialize |
| 194 // the stubs from a macro. | 194 // the stubs from a macro. |
| 195 void* dummy_; | 195 void* dummy_; |
| 196 | 196 |
| 197 // Generate the stub and finalize the generated code into the stub | 197 // Generate the stub and finalize the generated code into the stub |
| 198 // code executable area. | 198 // code executable area. |
| 199 static RawCode* Generate(const char* name, | 199 static RawCode* Generate(const char* name, |
| 200 void (*GenerateStub)(Assembler* assembler)); | 200 void (*GenerateStub)(Assembler* assembler)); |
| 201 | 201 |
| 202 static void GenerateMegamorphicMissStub(Assembler* assembler); | 202 static void GenerateMegamorphicMissStub(Assembler* assembler); |
| 203 static uword GenerateAllocationStubForClass(Assembler* assembler, | 203 static void GenerateAllocationStubForClass( |
| 204 const Class& cls); | 204 Assembler* assembler, const Class& cls, |
| 205 uword* entry_patch_offset, uword* patch_code_pc_offset); |
| 205 static void GenerateNArgsCheckInlineCacheStub( | 206 static void GenerateNArgsCheckInlineCacheStub( |
| 206 Assembler* assembler, | 207 Assembler* assembler, |
| 207 intptr_t num_args, | 208 intptr_t num_args, |
| 208 const RuntimeEntry& handle_ic_miss, | 209 const RuntimeEntry& handle_ic_miss, |
| 209 Token::Kind kind); | 210 Token::Kind kind); |
| 210 static void GenerateUsageCounterIncrement(Assembler* assembler, | 211 static void GenerateUsageCounterIncrement(Assembler* assembler, |
| 211 Register temp_reg); | 212 Register temp_reg); |
| 212 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); | 213 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); |
| 213 | 214 |
| 214 static void GenerateIdenticalWithNumberCheckStub( | 215 static void GenerateIdenticalWithNumberCheckStub( |
| 215 Assembler* assembler, | 216 Assembler* assembler, |
| 216 const Register left, | 217 const Register left, |
| 217 const Register right, | 218 const Register right, |
| 218 const Register temp1 = kNoRegister, | 219 const Register temp1 = kNoRegister, |
| 219 const Register temp2 = kNoRegister); | 220 const Register temp2 = kNoRegister); |
| 220 }; | 221 }; |
| 221 | 222 |
| 222 } // namespace dart | 223 } // namespace dart |
| 223 | 224 |
| 224 #endif // VM_STUB_CODE_H_ | 225 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |