| 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 460 |
| 461 // Returns 'sorted' array in decreasing count order. | 461 // Returns 'sorted' array in decreasing count order. |
| 462 static void SortICDataByCount(const ICData& ic_data, | 462 static void SortICDataByCount(const ICData& ic_data, |
| 463 GrowableArray<CidTarget>* sorted); | 463 GrowableArray<CidTarget>* sorted); |
| 464 | 464 |
| 465 private: | 465 private: |
| 466 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. | 466 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. |
| 467 | 467 |
| 468 void EmitFrameEntry(); | 468 void EmitFrameEntry(); |
| 469 | 469 |
| 470 void EmitTrySyncMove(Address dest, Location loc, bool* push_emitted); | 470 void EmitTrySyncMove(intptr_t dest_offset, Location loc, bool* push_emitted); |
| 471 | 471 |
| 472 void AddStaticCallTarget(const Function& function); | 472 void AddStaticCallTarget(const Function& function); |
| 473 | 473 |
| 474 void GenerateDeferredCode(); | 474 void GenerateDeferredCode(); |
| 475 | 475 |
| 476 void EmitInstructionPrologue(Instruction* instr); | 476 void EmitInstructionPrologue(Instruction* instr); |
| 477 void EmitInstructionEpilogue(Instruction* instr); | 477 void EmitInstructionEpilogue(Instruction* instr); |
| 478 | 478 |
| 479 // Emit code to load a Value into register 'dst'. | 479 // Emit code to load a Value into register 'dst'. |
| 480 void LoadValue(Register dst, Value* value); | 480 void LoadValue(Register dst, Value* value); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 // that should be used when deoptimizing we store it in this variable. | 600 // that should be used when deoptimizing we store it in this variable. |
| 601 // In future AddDeoptStub should be moved out of the instruction template. | 601 // In future AddDeoptStub should be moved out of the instruction template. |
| 602 Environment* pending_deoptimization_env_; | 602 Environment* pending_deoptimization_env_; |
| 603 | 603 |
| 604 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 604 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 605 }; | 605 }; |
| 606 | 606 |
| 607 } // namespace dart | 607 } // namespace dart |
| 608 | 608 |
| 609 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 609 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |