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

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

Issue 2734323003: Re-landing of "replace TrySync with Metadata". (Closed)
Patch Set: Address review comments Created 3 years, 9 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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/precompiler.h" 5 #include "vm/precompiler.h"
6 6
7 #include "vm/aot_optimizer.h" 7 #include "vm/aot_optimizer.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/branch_optimizer.h" 10 #include "vm/branch_optimizer.h"
(...skipping 2913 matching lines...) Expand 10 before | Expand all | Expand 10 after
2924 // after generating unoptimized code. 2924 // after generating unoptimized code.
2925 function.set_usage_counter(INT_MIN); 2925 function.set_usage_counter(INT_MIN);
2926 } 2926 }
2927 2927
2928 graph_compiler->FinalizePcDescriptors(code); 2928 graph_compiler->FinalizePcDescriptors(code);
2929 code.set_deopt_info_array(deopt_info_array); 2929 code.set_deopt_info_array(deopt_info_array);
2930 2930
2931 graph_compiler->FinalizeStackMaps(code); 2931 graph_compiler->FinalizeStackMaps(code);
2932 graph_compiler->FinalizeVarDescriptors(code); 2932 graph_compiler->FinalizeVarDescriptors(code);
2933 graph_compiler->FinalizeExceptionHandlers(code); 2933 graph_compiler->FinalizeExceptionHandlers(code);
2934 graph_compiler->FinalizeCatchEntryStateMap(code);
2934 graph_compiler->FinalizeStaticCallTargetsTable(code); 2935 graph_compiler->FinalizeStaticCallTargetsTable(code);
2935 graph_compiler->FinalizeCodeSourceMap(code); 2936 graph_compiler->FinalizeCodeSourceMap(code);
2936 2937
2937 if (optimized()) { 2938 if (optimized()) {
2938 // Installs code while at safepoint. 2939 // Installs code while at safepoint.
2939 ASSERT(thread()->IsMutatorThread()); 2940 ASSERT(thread()->IsMutatorThread());
2940 function.InstallOptimizedCode(code, /* is_osr = */ false); 2941 function.InstallOptimizedCode(code, /* is_osr = */ false);
2941 } else { // not optimized. 2942 } else { // not optimized.
2942 function.set_unoptimized_code(code); 2943 function.set_unoptimized_code(code);
2943 function.AttachCode(code); 2944 function.AttachCode(code);
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
3555 3556
3556 ASSERT(FLAG_precompiled_mode); 3557 ASSERT(FLAG_precompiled_mode);
3557 const bool optimized = function.IsOptimizable(); // False for natives. 3558 const bool optimized = function.IsOptimizable(); // False for natives.
3558 DartPrecompilationPipeline pipeline(zone, field_type_map); 3559 DartPrecompilationPipeline pipeline(zone, field_type_map);
3559 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized); 3560 return PrecompileFunctionHelper(precompiler, &pipeline, function, optimized);
3560 } 3561 }
3561 3562
3562 #endif // DART_PRECOMPILER 3563 #endif // DART_PRECOMPILER
3563 3564
3564 } // namespace dart 3565 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698