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

Side by Side Diff: runtime/vm/compiler.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/code_descriptors.cc ('k') | runtime/vm/deopt_instructions.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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 // after generating unoptimized code. 576 // after generating unoptimized code.
577 function.set_usage_counter(INT_MIN); 577 function.set_usage_counter(INT_MIN);
578 } 578 }
579 579
580 graph_compiler->FinalizePcDescriptors(code); 580 graph_compiler->FinalizePcDescriptors(code);
581 code.set_deopt_info_array(deopt_info_array); 581 code.set_deopt_info_array(deopt_info_array);
582 582
583 graph_compiler->FinalizeStackMaps(code); 583 graph_compiler->FinalizeStackMaps(code);
584 graph_compiler->FinalizeVarDescriptors(code); 584 graph_compiler->FinalizeVarDescriptors(code);
585 graph_compiler->FinalizeExceptionHandlers(code); 585 graph_compiler->FinalizeExceptionHandlers(code);
586 graph_compiler->FinalizeCatchEntryStateMap(code);
586 graph_compiler->FinalizeStaticCallTargetsTable(code); 587 graph_compiler->FinalizeStaticCallTargetsTable(code);
587 graph_compiler->FinalizeCodeSourceMap(code); 588 graph_compiler->FinalizeCodeSourceMap(code);
588 589
589 if (optimized()) { 590 if (optimized()) {
590 bool code_was_installed = false; 591 bool code_was_installed = false;
591 // Installs code while at safepoint. 592 // Installs code while at safepoint.
592 if (thread()->IsMutatorThread()) { 593 if (thread()->IsMutatorThread()) {
593 const bool is_osr = osr_id() != Compiler::kNoOSRDeoptId; 594 const bool is_osr = osr_id() != Compiler::kNoOSRDeoptId;
594 function.InstallOptimizedCode(code, is_osr); 595 function.InstallOptimizedCode(code, is_osr);
595 code_was_installed = true; 596 code_was_installed = true;
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 2296
2296 2297
2297 bool BackgroundCompiler::IsDisabled() { 2298 bool BackgroundCompiler::IsDisabled() {
2298 UNREACHABLE(); 2299 UNREACHABLE();
2299 return true; 2300 return true;
2300 } 2301 }
2301 2302
2302 #endif // DART_PRECOMPILED_RUNTIME 2303 #endif // DART_PRECOMPILED_RUNTIME
2303 2304
2304 } // namespace dart 2305 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_descriptors.cc ('k') | runtime/vm/deopt_instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698