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

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

Issue 10917085: Revert "Remove classes Computation and BindInstr." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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.h ('k') | runtime/vm/flow_graph_compiler_x64.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_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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 } 597 }
598 598
599 599
600 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { 600 void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) {
601 if (!is_optimizing()) { 601 if (!is_optimizing()) {
602 AllocateRegistersLocally(instr); 602 AllocateRegistersLocally(instr);
603 } 603 }
604 } 604 }
605 605
606 606
607 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) {
608 if (is_optimizing()) return;
609 Definition* defn = instr->AsDefinition();
610 if ((defn != NULL) && defn->is_used()) {
611 __ pushl(defn->locs()->out().reg());
612 }
613 }
614
615
616 void FlowGraphCompiler::CopyParameters() { 607 void FlowGraphCompiler::CopyParameters() {
617 __ Comment("Copy parameters"); 608 __ Comment("Copy parameters");
618 const Function& function = parsed_function().function(); 609 const Function& function = parsed_function().function();
619 const bool is_native_instance_closure = 610 const bool is_native_instance_closure =
620 function.is_native() && function.IsImplicitInstanceClosureFunction(); 611 function.is_native() && function.IsImplicitInstanceClosureFunction();
621 LocalScope* scope = parsed_function().node_sequence()->scope(); 612 LocalScope* scope = parsed_function().node_sequence()->scope();
622 const int num_fixed_params = function.num_fixed_parameters(); 613 const int num_fixed_params = function.num_fixed_parameters();
623 const int num_opt_params = function.num_optional_parameters(); 614 const int num_opt_params = function.num_optional_parameters();
624 int implicit_this_param_pos = is_native_instance_closure ? -1 : 0; 615 int implicit_this_param_pos = is_native_instance_closure ? -1 : 0;
625 ASSERT(parsed_function().first_parameter_index() == 616 ASSERT(parsed_function().first_parameter_index() ==
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 __ popl(ECX); 1314 __ popl(ECX);
1324 __ popl(EAX); 1315 __ popl(EAX);
1325 } 1316 }
1326 1317
1327 1318
1328 #undef __ 1319 #undef __
1329 1320
1330 } // namespace dart 1321 } // namespace dart
1331 1322
1332 #endif // defined TARGET_ARCH_IA32 1323 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.h ('k') | runtime/vm/flow_graph_compiler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698