OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |