| 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 Register result); | 376 Register result); |
| 377 | 377 |
| 378 void EmitEqualityRegConstCompare(Register reg, | 378 void EmitEqualityRegConstCompare(Register reg, |
| 379 const Object& obj, | 379 const Object& obj, |
| 380 bool needs_number_check, | 380 bool needs_number_check, |
| 381 intptr_t token_pos); | 381 intptr_t token_pos); |
| 382 void EmitEqualityRegRegCompare(Register left, | 382 void EmitEqualityRegRegCompare(Register left, |
| 383 Register right, | 383 Register right, |
| 384 bool needs_number_check, | 384 bool needs_number_check, |
| 385 intptr_t token_pos); | 385 intptr_t token_pos); |
| 386 // Implement equality: if any of the arguments is null do identity check. | |
| 387 // Fallthrough calls super equality. | |
| 388 void EmitSuperEqualityCallPrologue(Register result, Label* skip_call); | |
| 389 | 386 |
| 390 void EmitTrySync(Instruction* instr, intptr_t try_index); | 387 void EmitTrySync(Instruction* instr, intptr_t try_index); |
| 391 | 388 |
| 392 intptr_t StackSize() const; | 389 intptr_t StackSize() const; |
| 393 | 390 |
| 394 // Returns assembler label associated with the given block entry. | 391 // Returns assembler label associated with the given block entry. |
| 395 Label* GetJumpLabel(BlockEntryInstr* block_entry) const; | 392 Label* GetJumpLabel(BlockEntryInstr* block_entry) const; |
| 396 bool WasCompacted(BlockEntryInstr* block_entry) const; | 393 bool WasCompacted(BlockEntryInstr* block_entry) const; |
| 397 | 394 |
| 398 // Returns true if there is a next block after the current one in | 395 // Returns true if there is a next block after the current one in |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 // that should be used when deoptimizing we store it in this variable. | 601 // that should be used when deoptimizing we store it in this variable. |
| 605 // In future AddDeoptStub should be moved out of the instruction template. | 602 // In future AddDeoptStub should be moved out of the instruction template. |
| 606 Environment* pending_deoptimization_env_; | 603 Environment* pending_deoptimization_env_; |
| 607 | 604 |
| 608 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 605 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 609 }; | 606 }; |
| 610 | 607 |
| 611 } // namespace dart | 608 } // namespace dart |
| 612 | 609 |
| 613 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 610 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |