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

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

Issue 914133002: VM: Fix slow-path deoptimization environment. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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/intermediate_language.h ('k') | tests/language/vm/optimized_stacktrace_test.dart » ('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 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #include "vm/assembler.h" 6 #include "vm/assembler.h"
7 #include "vm/intrinsifier.h" 7 #include "vm/intrinsifier.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 CHECK_FINGERPRINT3(function, class_name, function_name, enum_name, fp); \ 147 CHECK_FINGERPRINT3(function, class_name, function_name, enum_name, fp); \
148 if (!Build_##enum_name(graph)) return false; \ 148 if (!Build_##enum_name(graph)) return false; \
149 break; 149 break;
150 150
151 GRAPH_INTRINSICS_LIST(EMIT_CASE); 151 GRAPH_INTRINSICS_LIST(EMIT_CASE);
152 default: 152 default:
153 return false; 153 return false;
154 #undef EMIT_CASE 154 #undef EMIT_CASE
155 } 155 }
156 156
157 if (FLAG_print_flow_graph) { 157 if (FLAG_print_flow_graph && FlowGraphPrinter::ShouldPrint(function)) {
158 OS::Print("Intrinsic graph before\n"); 158 OS::Print("Intrinsic graph before\n");
159 FlowGraphPrinter printer(*graph); 159 FlowGraphPrinter printer(*graph);
160 printer.PrintBlocks(); 160 printer.PrintBlocks();
161 } 161 }
162 162
163 // Perform register allocation on the SSA graph. 163 // Perform register allocation on the SSA graph.
164 FlowGraphAllocator allocator(*graph, true); // Intrinsic mode. 164 FlowGraphAllocator allocator(*graph, true); // Intrinsic mode.
165 allocator.AllocateRegisters(); 165 allocator.AllocateRegisters();
166 166
167 if (FLAG_print_flow_graph) { 167 if (FLAG_print_flow_graph && FlowGraphPrinter::ShouldPrint(function)) {
168 OS::Print("Intrinsic graph after\n"); 168 OS::Print("Intrinsic graph after\n");
169 FlowGraphPrinter printer(*graph); 169 FlowGraphPrinter printer(*graph);
170 printer.PrintBlocks(); 170 printer.PrintBlocks();
171 } 171 }
172 EmitCodeFor(compiler, graph); 172 EmitCodeFor(compiler, graph);
173 return true; 173 return true;
174 } 174 }
175 175
176 176
177 void Intrinsifier::Intrinsify(const ParsedFunction& parsed_function, 177 void Intrinsifier::Intrinsify(const ParsedFunction& parsed_function,
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 new Value(growable_array), 684 new Value(growable_array),
685 new Value(length), 685 new Value(length),
686 kNoStoreBarrier, 686 kNoStoreBarrier,
687 builder.TokenPos())); 687 builder.TokenPos()));
688 Definition* null_def = builder.AddNullDefinition(); 688 Definition* null_def = builder.AddNullDefinition();
689 builder.AddIntrinsicReturn(new Value(null_def)); 689 builder.AddIntrinsicReturn(new Value(null_def));
690 return true; 690 return true;
691 } 691 }
692 692
693 } // namespace dart 693 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | tests/language/vm/optimized_stacktrace_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698