| 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_FLOW_GRAPH_COMPILER_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ | 
| 6 #define VM_FLOW_GRAPH_COMPILER_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_H_ | 
| 7 | 7 | 
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" | 
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" | 
| 10 #include "vm/code_descriptors.h" | 10 #include "vm/code_descriptors.h" | 
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 514   const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, | 514   const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, | 
| 515                                          const Function& target, | 515                                          const Function& target, | 
| 516                                          const Array& arguments_descriptor, | 516                                          const Array& arguments_descriptor, | 
| 517                                          intptr_t num_args_tested); | 517                                          intptr_t num_args_tested); | 
| 518 | 518 | 
| 519   const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const { | 519   const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const { | 
| 520     return *deopt_id_to_ic_data_; | 520     return *deopt_id_to_ic_data_; | 
| 521   } | 521   } | 
| 522 | 522 | 
| 523   Isolate* isolate() const { return isolate_; } | 523   Isolate* isolate() const { return isolate_; } | 
|  | 524   Zone* zone() const { return zone_; } | 
| 524 | 525 | 
| 525   void AddStubCallTarget(const Code& code); | 526   void AddStubCallTarget(const Code& code); | 
| 526 | 527 | 
| 527   const Array& inlined_code_intervals() const { | 528   const Array& inlined_code_intervals() const { | 
| 528     ASSERT(inlined_code_intervals_ != NULL); | 529     ASSERT(inlined_code_intervals_ != NULL); | 
| 529     return *inlined_code_intervals_; | 530     return *inlined_code_intervals_; | 
| 530   } | 531   } | 
| 531 | 532 | 
| 532   RawArray* InliningIdToFunction() const; | 533   RawArray* InliningIdToFunction() const; | 
| 533 | 534 | 
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 646 | 647 | 
| 647 #if defined(DEBUG) | 648 #if defined(DEBUG) | 
| 648   void FrameStateUpdateWith(Instruction* instr); | 649   void FrameStateUpdateWith(Instruction* instr); | 
| 649   void FrameStatePush(Definition* defn); | 650   void FrameStatePush(Definition* defn); | 
| 650   void FrameStatePop(intptr_t count); | 651   void FrameStatePop(intptr_t count); | 
| 651   bool FrameStateIsSafeToCall(); | 652   bool FrameStateIsSafeToCall(); | 
| 652   void FrameStateClear(); | 653   void FrameStateClear(); | 
| 653 #endif | 654 #endif | 
| 654 | 655 | 
| 655   Isolate* isolate_; | 656   Isolate* isolate_; | 
|  | 657   Zone* zone_; | 
| 656   Assembler* assembler_; | 658   Assembler* assembler_; | 
| 657   const ParsedFunction& parsed_function_; | 659   const ParsedFunction& parsed_function_; | 
| 658   const FlowGraph& flow_graph_; | 660   const FlowGraph& flow_graph_; | 
| 659   const GrowableArray<BlockEntryInstr*>& block_order_; | 661   const GrowableArray<BlockEntryInstr*>& block_order_; | 
| 660 | 662 | 
| 661 #if defined(DEBUG) | 663 #if defined(DEBUG) | 
| 662   GrowableArray<Representation> frame_state_; | 664   GrowableArray<Representation> frame_state_; | 
| 663 #endif | 665 #endif | 
| 664 | 666 | 
| 665   // Compiler specific per-block state.  Indexed by postorder block number | 667   // Compiler specific per-block state.  Indexed by postorder block number | 
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 708   const Array* inlined_code_intervals_; | 710   const Array* inlined_code_intervals_; | 
| 709   const GrowableArray<const Function*>& inline_id_to_function_; | 711   const GrowableArray<const Function*>& inline_id_to_function_; | 
| 710   const GrowableArray<intptr_t>& caller_inline_id_; | 712   const GrowableArray<intptr_t>& caller_inline_id_; | 
| 711 | 713 | 
| 712   DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 714   DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 
| 713 }; | 715 }; | 
| 714 | 716 | 
| 715 }  // namespace dart | 717 }  // namespace dart | 
| 716 | 718 | 
| 717 #endif  // VM_FLOW_GRAPH_COMPILER_H_ | 719 #endif  // VM_FLOW_GRAPH_COMPILER_H_ | 
| OLD | NEW | 
|---|