| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| 481 | 481 |
| 482 void EmitStaticCall(const Function& function, | 482 void EmitOptimizedStaticCall(const Function& function, |
| 483 const Array& arguments_descriptor, | 483 const Array& arguments_descriptor, |
| 484 intptr_t argument_count, | 484 intptr_t argument_count, |
| 485 intptr_t deopt_id, | 485 intptr_t deopt_id, |
| 486 intptr_t token_pos, | 486 intptr_t token_pos, |
| 487 LocationSummary* locs); | 487 LocationSummary* locs); |
| 488 | 488 |
| 489 void EmitUnoptimizedStaticCall(const Function& function, | 489 void EmitUnoptimizedStaticCall(const Function& function, |
| 490 const Array& arguments_descriptor, | 490 const Array& arguments_descriptor, |
| 491 intptr_t argument_count, | 491 intptr_t argument_count, |
| 492 intptr_t deopt_id, | 492 intptr_t deopt_id, |
| 493 intptr_t token_pos, | 493 intptr_t token_pos, |
| 494 LocationSummary* locs); | 494 LocationSummary* locs); |
| 495 | 495 |
| 496 // Type checking helper methods. | 496 // Type checking helper methods. |
| 497 void CheckClassIds(Register class_id_reg, | 497 void CheckClassIds(Register class_id_reg, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 // that should be used when deoptimizing we store it in this variable. | 595 // that should be used when deoptimizing we store it in this variable. |
| 596 // In future AddDeoptStub should be moved out of the instruction template. | 596 // In future AddDeoptStub should be moved out of the instruction template. |
| 597 Environment* pending_deoptimization_env_; | 597 Environment* pending_deoptimization_env_; |
| 598 | 598 |
| 599 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 599 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 600 }; | 600 }; |
| 601 | 601 |
| 602 } // namespace dart | 602 } // namespace dart |
| 603 | 603 |
| 604 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 604 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |