| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 465 |
| 466 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, | 466 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, |
| 467 const Function& target, | 467 const Function& target, |
| 468 const Array& arguments_descriptor, | 468 const Array& arguments_descriptor, |
| 469 intptr_t num_args_tested); | 469 intptr_t num_args_tested); |
| 470 | 470 |
| 471 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const { | 471 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const { |
| 472 return *deopt_id_to_ic_data_; | 472 return *deopt_id_to_ic_data_; |
| 473 } | 473 } |
| 474 | 474 |
| 475 Isolate* isolate() const { return isolate_; } |
| 476 |
| 475 private: | 477 private: |
| 476 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. | 478 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. |
| 477 | 479 |
| 478 Isolate* isolate() const { return isolate_; } | |
| 479 | |
| 480 void EmitFrameEntry(); | 480 void EmitFrameEntry(); |
| 481 | 481 |
| 482 void AddStaticCallTarget(const Function& function); | 482 void AddStaticCallTarget(const Function& function); |
| 483 | 483 |
| 484 void GenerateDeferredCode(); | 484 void GenerateDeferredCode(); |
| 485 | 485 |
| 486 void EmitInstructionPrologue(Instruction* instr); | 486 void EmitInstructionPrologue(Instruction* instr); |
| 487 void EmitInstructionEpilogue(Instruction* instr); | 487 void EmitInstructionEpilogue(Instruction* instr); |
| 488 | 488 |
| 489 // Emit code to load a Value into register 'dst'. | 489 // Emit code to load a Value into register 'dst'. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 intptr_t lazy_deopt_pc_offset_; | 619 intptr_t lazy_deopt_pc_offset_; |
| 620 | 620 |
| 621 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; | 621 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; |
| 622 | 622 |
| 623 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 623 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 624 }; | 624 }; |
| 625 | 625 |
| 626 } // namespace dart | 626 } // namespace dart |
| 627 | 627 |
| 628 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 628 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |