| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_X64_H_ | 5 #ifndef VM_CODE_GENERATOR_X64_H_ |
| 6 #define VM_CODE_GENERATOR_X64_H_ | 6 #define VM_CODE_GENERATOR_X64_H_ |
| 7 | 7 |
| 8 #ifndef VM_CODE_GENERATOR_H_ | 8 #ifndef VM_CODE_GENERATOR_H_ |
| 9 #error Do not include code_generator_x64.h directly; use code_generator.h. | 9 #error Do not include code_generator_x64.h directly; use code_generator.h. |
| 10 #endif | 10 #endif |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // Add pc descriptors to code. | 35 // Add pc descriptors to code. |
| 36 void FinalizePcDescriptors(const Code& code) { UNIMPLEMENTED(); } | 36 void FinalizePcDescriptors(const Code& code) { UNIMPLEMENTED(); } |
| 37 | 37 |
| 38 // Add stack maps to code. | 38 // Add stack maps to code. |
| 39 void FinalizeStackmaps(const Code& code) { UNIMPLEMENTED(); } | 39 void FinalizeStackmaps(const Code& code) { UNIMPLEMENTED(); } |
| 40 | 40 |
| 41 // Add local variable descriptors to code. | 41 // Add local variable descriptors to code. |
| 42 void FinalizeVarDescriptors(const Code& code) { UNIMPLEMENTED(); } | 42 void FinalizeVarDescriptors(const Code& code) { UNIMPLEMENTED(); } |
| 43 | 43 |
| 44 void FinalizeComments(const Code& code) { UNIMPLEMENTED(); } |
| 45 |
| 44 // Allocate and return an arguments descriptor. | 46 // Allocate and return an arguments descriptor. |
| 45 // Let 'num_names' be the length of 'optional_arguments_names'. | 47 // Let 'num_names' be the length of 'optional_arguments_names'. |
| 46 // Treat the first 'num_arguments - num_names' arguments as positional and | 48 // Treat the first 'num_arguments - num_names' arguments as positional and |
| 47 // treat the following 'num_names' arguments as named optional arguments. | 49 // treat the following 'num_names' arguments as named optional arguments. |
| 48 static const Array& ArgumentsDescriptor( | 50 static const Array& ArgumentsDescriptor( |
| 49 int num_arguments, | 51 int num_arguments, |
| 50 const Array& optional_arguments_names); | 52 const Array& optional_arguments_names); |
| 51 | 53 |
| 52 // Return true if the VM may optimize functions. | 54 // Return true if the VM may optimize functions. |
| 53 static bool CanOptimize(); | 55 static bool CanOptimize(); |
| 54 | 56 |
| 55 private: | 57 private: |
| 56 // Forward declarations. | 58 // Forward declarations. |
| 57 class DescriptorList; | 59 class DescriptorList; |
| 58 | 60 |
| 59 DescriptorList* pc_descriptors_list_; | 61 DescriptorList* pc_descriptors_list_; |
| 60 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 62 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 | 65 |
| 64 } // namespace dart | 66 } // namespace dart |
| 65 | 67 |
| 66 #endif // VM_CODE_GENERATOR_X64_H_ | 68 #endif // VM_CODE_GENERATOR_X64_H_ |
| OLD | NEW |