| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 } | 623 } |
| 624 | 624 |
| 625 | 625 |
| 626 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { | 626 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { |
| 627 if (!is_optimizing()) { | 627 if (!is_optimizing()) { |
| 628 if (FLAG_enable_type_checks && instr->IsAssertAssignable()) { | 628 if (FLAG_enable_type_checks && instr->IsAssertAssignable()) { |
| 629 AssertAssignableInstr* assert = instr->AsAssertAssignable(); | 629 AssertAssignableInstr* assert = instr->AsAssertAssignable(); |
| 630 AddCurrentDescriptor(PcDescriptors::kDeoptBefore, | 630 AddCurrentDescriptor(PcDescriptors::kDeoptBefore, |
| 631 assert->deopt_id(), | 631 assert->deopt_id(), |
| 632 assert->token_pos()); | 632 assert->token_pos()); |
| 633 } else if (instr->IsGuardField()) { |
| 634 GuardFieldInstr* guard = instr->AsGuardField(); |
| 635 AddCurrentDescriptor(PcDescriptors::kDeoptBefore, |
| 636 guard->deopt_id(), |
| 637 Scanner::kDummyTokenIndex); |
| 633 } | 638 } |
| 634 AllocateRegistersLocally(instr); | 639 AllocateRegistersLocally(instr); |
| 635 } | 640 } |
| 636 } | 641 } |
| 637 | 642 |
| 638 | 643 |
| 639 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { | 644 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { |
| 640 if (is_optimizing()) return; | 645 if (is_optimizing()) return; |
| 641 Definition* defn = instr->AsDefinition(); | 646 Definition* defn = instr->AsDefinition(); |
| 642 if ((defn != NULL) && defn->is_used()) { | 647 if ((defn != NULL) && defn->is_used()) { |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1721 __ popl(ECX); | 1726 __ popl(ECX); |
| 1722 __ popl(EAX); | 1727 __ popl(EAX); |
| 1723 } | 1728 } |
| 1724 | 1729 |
| 1725 | 1730 |
| 1726 #undef __ | 1731 #undef __ |
| 1727 | 1732 |
| 1728 } // namespace dart | 1733 } // namespace dart |
| 1729 | 1734 |
| 1730 #endif // defined TARGET_ARCH_IA32 | 1735 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |