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

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

Issue 2739663002: Revert "Replacing TrySync with Metadata" (Closed)
Patch Set: 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);
587 graph_compiler->FinalizeStaticCallTargetsTable(code); 586 graph_compiler->FinalizeStaticCallTargetsTable(code);
588 graph_compiler->FinalizeCodeSourceMap(code); 587 graph_compiler->FinalizeCodeSourceMap(code);
589 588
590 if (optimized()) { 589 if (optimized()) {
591 bool code_was_installed = false; 590 bool code_was_installed = false;
592 // Installs code while at safepoint. 591 // Installs code while at safepoint.
593 if (thread()->IsMutatorThread()) { 592 if (thread()->IsMutatorThread()) {
594 const bool is_osr = osr_id() != Compiler::kNoOSRDeoptId; 593 const bool is_osr = osr_id() != Compiler::kNoOSRDeoptId;
595 function.InstallOptimizedCode(code, is_osr); 594 function.InstallOptimizedCode(code, is_osr);
596 code_was_installed = true; 595 code_was_installed = true;
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
2296 2295
2297 2296
2298 bool BackgroundCompiler::IsDisabled() { 2297 bool BackgroundCompiler::IsDisabled() {
2299 UNREACHABLE(); 2298 UNREACHABLE();
2300 return true; 2299 return true;
2301 } 2300 }
2302 2301
2303 #endif // DART_PRECOMPILED_RUNTIME 2302 #endif // DART_PRECOMPILED_RUNTIME
2304 2303
2305 } // namespace dart 2304 } // 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