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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.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_ia32.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } 619 }
620 620
621 621
622 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { 622 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) {
623 if (!is_optimizing()) { 623 if (!is_optimizing()) {
624 if (FLAG_enable_type_checks && instr->IsAssertAssignable()) { 624 if (FLAG_enable_type_checks && instr->IsAssertAssignable()) {
625 AssertAssignableInstr* assert = instr->AsAssertAssignable(); 625 AssertAssignableInstr* assert = instr->AsAssertAssignable();
626 AddCurrentDescriptor(PcDescriptors::kDeoptBefore, 626 AddCurrentDescriptor(PcDescriptors::kDeoptBefore,
627 assert->deopt_id(), 627 assert->deopt_id(),
628 assert->token_pos()); 628 assert->token_pos());
629 } else if (instr->IsGuardField()) {
630 GuardFieldInstr* guard = instr->AsGuardField();
631 AddCurrentDescriptor(PcDescriptors::kDeoptBefore,
632 guard->deopt_id(),
633 Scanner::kDummyTokenIndex);
629 } 634 }
630 AllocateRegistersLocally(instr); 635 AllocateRegistersLocally(instr);
631 } 636 }
632 } 637 }
633 638
634 639
635 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { 640 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) {
636 if (is_optimizing()) return; 641 if (is_optimizing()) return;
637 Definition* defn = instr->AsDefinition(); 642 Definition* defn = instr->AsDefinition();
638 if ((defn != NULL) && defn->is_used()) { 643 if ((defn != NULL) && defn->is_used()) {
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { 1700 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) {
1696 __ Exchange(mem1, mem2); 1701 __ Exchange(mem1, mem2);
1697 } 1702 }
1698 1703
1699 1704
1700 #undef __ 1705 #undef __
1701 1706
1702 } // namespace dart 1707 } // namespace dart
1703 1708
1704 #endif // defined TARGET_ARCH_X64 1709 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698