| 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_IA32_H_ | 5 #ifndef VM_CODE_GENERATOR_IA32_H_ |
| 6 #define VM_CODE_GENERATOR_IA32_H_ | 6 #define VM_CODE_GENERATOR_IA32_H_ |
| 7 | 7 |
| 8 #ifndef VM_CODE_GENERATOR_H_ | 8 #ifndef VM_CODE_GENERATOR_H_ |
| 9 #error Do not include code_generator_ia32.h directly; use code_generator.h. | 9 #error Do not include code_generator_ia32.h directly; use code_generator.h. |
| 10 #endif | 10 #endif |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // Add pc descriptors to code. | 94 // Add pc descriptors to code. |
| 95 void FinalizePcDescriptors(const Code& code); | 95 void FinalizePcDescriptors(const Code& code); |
| 96 | 96 |
| 97 // Add stack maps to code. | 97 // Add stack maps to code. |
| 98 void FinalizeStackmaps(const Code& code); | 98 void FinalizeStackmaps(const Code& code); |
| 99 | 99 |
| 100 // Add local variable descriptors to code. | 100 // Add local variable descriptors to code. |
| 101 void FinalizeVarDescriptors(const Code& code); | 101 void FinalizeVarDescriptors(const Code& code); |
| 102 | 102 |
| 103 void FinalizeComments(const Code& code); |
| 104 |
| 103 // Allocate and return an arguments descriptor. | 105 // Allocate and return an arguments descriptor. |
| 104 // Let 'num_names' be the length of 'optional_arguments_names'. | 106 // Let 'num_names' be the length of 'optional_arguments_names'. |
| 105 // Treat the first 'num_arguments - num_names' arguments as positional and | 107 // Treat the first 'num_arguments - num_names' arguments as positional and |
| 106 // treat the following 'num_names' arguments as named optional arguments. | 108 // treat the following 'num_names' arguments as named optional arguments. |
| 107 static const Array& ArgumentsDescriptor( | 109 static const Array& ArgumentsDescriptor( |
| 108 int num_arguments, | 110 int num_arguments, |
| 109 const Array& optional_arguments_names); | 111 const Array& optional_arguments_names); |
| 110 | 112 |
| 111 virtual bool IsOptimizing() const { | 113 virtual bool IsOptimizing() const { |
| 112 return false; | 114 return false; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 // The runtime context level is only incremented when a new context is | 262 // The runtime context level is only incremented when a new context is |
| 261 // allocated and chained to the list of contexts. | 263 // allocated and chained to the list of contexts. |
| 262 intptr_t context_level_; | 264 intptr_t context_level_; |
| 263 | 265 |
| 264 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 266 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |
| 265 }; | 267 }; |
| 266 | 268 |
| 267 } // namespace dart | 269 } // namespace dart |
| 268 | 270 |
| 269 #endif // VM_CODE_GENERATOR_IA32_H_ | 271 #endif // VM_CODE_GENERATOR_IA32_H_ |
| OLD | NEW |