Chromium Code Reviews| 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 } | 633 } |
| 634 if (instr->IsStoreInstanceField()) { | |
|
Kevin Millikin (Google)
2013/03/12 12:14:56
else if
Vyacheslav Egorov (Google)
2013/03/12 16:54:40
Done.
| |
| 635 StoreInstanceFieldInstr* store = instr->AsStoreInstanceField(); | |
| 636 AddCurrentDescriptor(PcDescriptors::kDeoptBefore, | |
| 637 store->deopt_id(), | |
| 638 Scanner::kDummyTokenIndex); | |
| 639 } | |
| 634 AllocateRegistersLocally(instr); | 640 AllocateRegistersLocally(instr); |
| 635 } | 641 } |
| 636 } | 642 } |
| 637 | 643 |
| 638 | 644 |
| 639 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { | 645 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { |
| 640 if (is_optimizing()) return; | 646 if (is_optimizing()) return; |
| 641 Definition* defn = instr->AsDefinition(); | 647 Definition* defn = instr->AsDefinition(); |
| 642 if ((defn != NULL) && defn->is_used()) { | 648 if ((defn != NULL) && defn->is_used()) { |
| 643 __ pushl(defn->locs()->out().reg()); | 649 __ pushl(defn->locs()->out().reg()); |
| (...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1721 __ popl(ECX); | 1727 __ popl(ECX); |
| 1722 __ popl(EAX); | 1728 __ popl(EAX); |
| 1723 } | 1729 } |
| 1724 | 1730 |
| 1725 | 1731 |
| 1726 #undef __ | 1732 #undef __ |
| 1727 | 1733 |
| 1728 } // namespace dart | 1734 } // namespace dart |
| 1729 | 1735 |
| 1730 #endif // defined TARGET_ARCH_IA32 | 1736 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |