Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 12529008: Collect type feedback for fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Ivan's comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698