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

Side by Side Diff: vm/flow_graph_inliner.cc

Issue 12052033: Added macros OBJECT_IMPLEMENTATION and FINAL_OBJECT_IMPLEMENTATION (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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 | « vm/exceptions.cc ('k') | vm/isolate.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/flow_graph_inliner.h" 5 #include "vm/flow_graph_inliner.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 arguments->Add(NULL); 770 arguments->Add(NULL);
771 param_stubs->Add(GetDefaultValue(i, parsed_function)); 771 param_stubs->Add(GetDefaultValue(i, parsed_function));
772 } 772 }
773 return; 773 return;
774 } 774 }
775 775
776 // Otherwise, build a collection of name/argument pairs. 776 // Otherwise, build a collection of name/argument pairs.
777 GrowableArray<NamedArgument> named_args(argument_names_count); 777 GrowableArray<NamedArgument> named_args(argument_names_count);
778 for (intptr_t i = 0; i < argument_names.Length(); ++i) { 778 for (intptr_t i = 0; i < argument_names.Length(); ++i) {
779 String& arg_name = String::Handle(Isolate::Current()); 779 String& arg_name = String::Handle(Isolate::Current());
780 arg_name |= argument_names.At(i); 780 arg_name ^= argument_names.At(i);
781 named_args.Add( 781 named_args.Add(
782 NamedArgument(&arg_name, (*arguments)[i + fixed_param_count])); 782 NamedArgument(&arg_name, (*arguments)[i + fixed_param_count]));
783 } 783 }
784 784
785 // Truncate the arguments array to just fixed parameters. 785 // Truncate the arguments array to just fixed parameters.
786 arguments->TruncateTo(fixed_param_count); 786 arguments->TruncateTo(fixed_param_count);
787 787
788 // For each optional named parameter, add the actual argument or its 788 // For each optional named parameter, add the actual argument or its
789 // default if no argument is passed. 789 // default if no argument is passed.
790 for (intptr_t i = fixed_param_count; i < param_count; ++i) { 790 for (intptr_t i = fixed_param_count; i < param_count; ++i) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 OS::Print("After Inlining of %s\n", flow_graph_-> 868 OS::Print("After Inlining of %s\n", flow_graph_->
869 parsed_function().function().ToFullyQualifiedCString()); 869 parsed_function().function().ToFullyQualifiedCString());
870 FlowGraphPrinter printer(*flow_graph_); 870 FlowGraphPrinter printer(*flow_graph_);
871 printer.PrintBlocks(); 871 printer.PrintBlocks();
872 } 872 }
873 } 873 }
874 } 874 }
875 } 875 }
876 876
877 } // namespace dart 877 } // namespace dart
OLDNEW
« no previous file with comments | « vm/exceptions.cc ('k') | vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698