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

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

Issue 10802025: Fuse compare with branch at graph building time. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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) 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 #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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 635
636 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { 636 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) {
637 LocationSummary* locs = instr->locs(); 637 LocationSummary* locs = instr->locs();
638 ASSERT(locs != NULL); 638 ASSERT(locs != NULL);
639 639
640 frame_register_allocator()->AllocateRegisters(instr); 640 frame_register_allocator()->AllocateRegisters(instr);
641 641
642 // TODO(vegorov): adjust assertion when we start removing comparison from the 642 // TODO(vegorov): adjust assertion when we start removing comparison from the
643 // graph when it is merged with a branch. 643 // graph when it is merged with a branch.
644 ASSERT(locs->is_call() || 644 ASSERT(locs->is_call() ||
645 (instr->IsBranch() && instr->AsBranch()->is_fused_with_comparison()) ||
646 (locs->input_count() == instr->InputCount())); 645 (locs->input_count() == instr->InputCount()));
647 } 646 }
648 647
649 648
650 void FlowGraphCompiler::CopyParameters() { 649 void FlowGraphCompiler::CopyParameters() {
651 const Function& function = parsed_function().function(); 650 const Function& function = parsed_function().function();
652 const bool is_native_instance_closure = 651 const bool is_native_instance_closure =
653 function.is_native() && function.IsImplicitInstanceClosureFunction(); 652 function.is_native() && function.IsImplicitInstanceClosureFunction();
654 LocalScope* scope = parsed_function().node_sequence()->scope(); 653 LocalScope* scope = parsed_function().node_sequence()->scope();
655 const int num_fixed_params = function.num_fixed_parameters(); 654 const int num_fixed_params = function.num_fixed_parameters();
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 } 1150 }
1152 } 1151 }
1153 } 1152 }
1154 1153
1155 1154
1156 #undef __ 1155 #undef __
1157 1156
1158 } // namespace dart 1157 } // namespace dart
1159 1158
1160 #endif // defined TARGET_ARCH_X64 1159 #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