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

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

Issue 2815533003: Refactor AOT deduplication steps so they can run before an app-jit snapshot as well. (Closed)
Patch Set: . Created 3 years, 8 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 | « no previous file | runtime/vm/dart_api_impl.cc » ('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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 await_token_positions->At(i).FromSynthetic(); 558 await_token_positions->At(i).FromSynthetic();
559 if (!token_pos.IsReal()) { 559 if (!token_pos.IsReal()) {
560 // Some async machinary uses sentinel values. Map them to 560 // Some async machinary uses sentinel values. Map them to
561 // no source position. 561 // no source position.
562 token_pos_value = Smi::New(TokenPosition::kNoSourcePos); 562 token_pos_value = Smi::New(TokenPosition::kNoSourcePos);
563 } else { 563 } else {
564 token_pos_value = Smi::New(token_pos.value()); 564 token_pos_value = Smi::New(token_pos.value());
565 } 565 }
566 await_to_token_map.SetAt(i, token_pos_value); 566 await_to_token_map.SetAt(i, token_pos_value);
567 } 567 }
568 code.SetAwaitTokenPositions(await_to_token_map); 568 code.set_await_token_positions(await_to_token_map);
569 } 569 }
570 } 570 }
571 } 571 }
572 #endif // !defined(PRODUCT) 572 #endif // !defined(PRODUCT)
573 573
574 if (!function.IsOptimizable()) { 574 if (!function.IsOptimizable()) {
575 // A function with huge unoptimized code can become non-optimizable 575 // A function with huge unoptimized code can become non-optimizable
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 }
(...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 2310
2311 2311
2312 bool BackgroundCompiler::IsDisabled() { 2312 bool BackgroundCompiler::IsDisabled() {
2313 UNREACHABLE(); 2313 UNREACHABLE();
2314 return true; 2314 return true;
2315 } 2315 }
2316 2316
2317 #endif // DART_PRECOMPILED_RUNTIME 2317 #endif // DART_PRECOMPILED_RUNTIME
2318 2318
2319 } // namespace dart 2319 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698