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_CODE_GENERATOR_ARM_H_ | 5 #ifndef VM_CODE_GENERATOR_ARM_H_ |
6 #define VM_CODE_GENERATOR_ARM_H_ | 6 #define VM_CODE_GENERATOR_ARM_H_ |
7 | 7 |
8 #ifndef VM_CODE_GENERATOR_H_ | 8 #ifndef VM_CODE_GENERATOR_H_ |
9 #error Do not include code_generator_arm.h directly; use assembler.h instead. | 9 #error Do not include code_generator_arm.h directly; use assembler.h instead. |
10 #endif | 10 #endif |
(...skipping 29 matching lines...) Expand all Loading... |
40 void FinalizeVarDescriptors(const Code& code) { UNIMPLEMENTED(); } | 40 void FinalizeVarDescriptors(const Code& code) { UNIMPLEMENTED(); } |
41 | 41 |
42 // Allocate and return an arguments descriptor. | 42 // Allocate and return an arguments descriptor. |
43 // Let 'num_names' be the length of 'optional_arguments_names'. | 43 // Let 'num_names' be the length of 'optional_arguments_names'. |
44 // Treat the first 'num_arguments - num_names' arguments as positional and | 44 // Treat the first 'num_arguments - num_names' arguments as positional and |
45 // treat the following 'num_names' arguments as named optional arguments. | 45 // treat the following 'num_names' arguments as named optional arguments. |
46 static const Array& ArgumentsDescriptor( | 46 static const Array& ArgumentsDescriptor( |
47 int num_arguments, | 47 int num_arguments, |
48 const Array& optional_arguments_names); | 48 const Array& optional_arguments_names); |
49 | 49 |
| 50 // Return true if the VM may optimize functions. |
| 51 static bool CanOptimize(); |
| 52 |
50 private: | 53 private: |
51 // Forward declarations. | 54 // Forward declarations. |
52 class DescriptorList; | 55 class DescriptorList; |
53 | 56 |
54 DescriptorList* pc_descriptors_list_; | 57 DescriptorList* pc_descriptors_list_; |
55 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 58 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |
56 }; | 59 }; |
57 | 60 |
58 } // namespace dart | 61 } // namespace dart |
59 | 62 |
60 #endif // VM_CODE_GENERATOR_ARM_H_ | 63 #endif // VM_CODE_GENERATOR_ARM_H_ |
OLD | NEW |