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

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

Issue 10857016: Refactored FlowGraphBuilder into a separate FlowGraph representation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added flow_graph.{h,cc} Created 8 years, 4 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
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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 if (FLAG_print_scopes) { 979 if (FLAG_print_scopes) {
980 // Print the function scope (again) after generating the prologue in order 980 // Print the function scope (again) after generating the prologue in order
981 // to see annotations such as allocation indices of locals. 981 // to see annotations such as allocation indices of locals.
982 if (FLAG_print_ast) { 982 if (FLAG_print_ast) {
983 // Second printing. 983 // Second printing.
984 OS::Print("Annotated "); 984 OS::Print("Annotated ");
985 } 985 }
986 AstPrinter::PrintFunctionScope(parsed_function()); 986 AstPrinter::PrintFunctionScope(parsed_function());
987 } 987 }
988 988
989 ASSERT(!block_order().is_empty());
989 VisitBlocks(); 990 VisitBlocks();
990 991
991 __ int3(); 992 __ int3();
992 GenerateDeferredCode(); 993 GenerateDeferredCode();
993 // Emit function patching code. This will be swapped with the first 13 bytes 994 // Emit function patching code. This will be swapped with the first 13 bytes
994 // at entry point. 995 // at entry point.
995 pc_descriptors_list()->AddDescriptor(PcDescriptors::kPatchCode, 996 pc_descriptors_list()->AddDescriptor(PcDescriptors::kPatchCode,
996 assembler()->CodeSize(), 997 assembler()->CodeSize(),
997 Isolate::kNoDeoptId, 998 Isolate::kNoDeoptId,
998 0, 999 0,
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { 1215 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) {
1215 __ Exchange(mem1, mem2); 1216 __ Exchange(mem1, mem2);
1216 } 1217 }
1217 1218
1218 1219
1219 #undef __ 1220 #undef __
1220 1221
1221 } // namespace dart 1222 } // namespace dart
1222 1223
1223 #endif // defined TARGET_ARCH_X64 1224 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698