| 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_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 | 
|   11  |   11  | 
|   12 #include "vm/assembler.h" |   12 #include "vm/assembler.h" | 
|   13 #include "vm/ast.h" |   13 #include "vm/ast.h" | 
|   14 #include "vm/growable_array.h" |   14 #include "vm/growable_array.h" | 
|   15 #include "vm/parser.h" |   15 #include "vm/parser.h" | 
|   16  |   16  | 
|   17 namespace dart { |   17 namespace dart { | 
|   18  |   18  | 
|   19 // Forward Declarations. |   19 // Forward declarations. | 
|   20 class Assembler; |   20 class Assembler; | 
|   21 class AstNode; |   21 class AstNode; | 
|   22 class CodeGenerator; |   22 class CodeGenerator; | 
|   23 class SourceLabel; |   23 class SourceLabel; | 
|   24  |   24  | 
|   25  |   25  | 
|   26 class CodeGeneratorState : public StackResource { |   26 class CodeGeneratorState : public StackResource { | 
|   27  public: |   27  public: | 
|   28   explicit CodeGeneratorState(CodeGenerator* codegen); |   28   explicit CodeGeneratorState(CodeGenerator* codegen); | 
|   29   virtual ~CodeGeneratorState(); |   29   virtual ~CodeGeneratorState(); | 
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  122  |  122  | 
|  123   virtual void CountBackwardLoop(); |  123   virtual void CountBackwardLoop(); | 
|  124  |  124  | 
|  125   void GenerateReturnEpilog(); |  125   void GenerateReturnEpilog(); | 
|  126  |  126  | 
|  127  private: |  127  private: | 
|  128   // TODO(srdjan): Remove the friendship once the two compilers are properly |  128   // TODO(srdjan): Remove the friendship once the two compilers are properly | 
|  129   // structured. |  129   // structured. | 
|  130   friend class OptimizingCodeGenerator; |  130   friend class OptimizingCodeGenerator; | 
|  131  |  131  | 
|  132   // Forward Declarations. |  132   // Forward declarations. | 
|  133   class DescriptorList; |  133   class DescriptorList; | 
|  134   class HandlerList; |  134   class HandlerList; | 
|  135  |  135  | 
|  136   // Return true if intrinsification was completed and no other code |  136   // Return true if intrinsification was completed and no other code | 
|  137   // needs to be generated. |  137   // needs to be generated. | 
|  138   virtual bool TryIntrinsify() { return false; } |  138   virtual bool TryIntrinsify() { return false; } | 
|  139   virtual void GeneratePreEntryCode(); |  139   virtual void GeneratePreEntryCode(); | 
|  140   void GenerateLegacyEntryCode(); |  140   void GenerateLegacyEntryCode(); | 
|  141   void GenerateEntryCode(); |  141   void GenerateEntryCode(); | 
|  142   void GenerateLoadVariable(Register dst, const LocalVariable& local); |  142   void GenerateLoadVariable(Register dst, const LocalVariable& local); | 
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  217   const ParsedFunction& parsed_function_; |  217   const ParsedFunction& parsed_function_; | 
|  218   intptr_t locals_space_size_; |  218   intptr_t locals_space_size_; | 
|  219   CodeGeneratorState* state_; |  219   CodeGeneratorState* state_; | 
|  220   DescriptorList* pc_descriptors_list_; |  220   DescriptorList* pc_descriptors_list_; | 
|  221   HandlerList* exception_handlers_list_; |  221   HandlerList* exception_handlers_list_; | 
|  222   int try_index_; |  222   int try_index_; | 
|  223  |  223  | 
|  224   DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |  224   DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 
|  225 }; |  225 }; | 
|  226  |  226  | 
|  227  |  | 
|  228 }  // namespace dart |  227 }  // namespace dart | 
|  229  |  228  | 
|  230 #endif  // VM_CODE_GENERATOR_IA32_H_ |  229 #endif  // VM_CODE_GENERATOR_IA32_H_ | 
| OLD | NEW |