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

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

Issue 1953803003: Fix precompile build issue with IsString change. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-review-comments Created 4 years, 7 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/raw_object.h » ('j') | runtime/vm/raw_object.h » ('J')
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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 DedupStackmapLists(); 222 DedupStackmapLists();
223 223
224 if (FLAG_dedup_instructions) { 224 if (FLAG_dedup_instructions) {
225 // Reduces binary size but obfuscates profiler results. 225 // Reduces binary size but obfuscates profiler results.
226 DedupInstructions(); 226 DedupInstructions();
227 } 227 }
228 228
229 zone_ = NULL; 229 zone_ = NULL;
230 } 230 }
231 231
232 // TODO(rmacnak): intptr_t dropped_symbols_count = Symbols::Compact(I); 232 intptr_t dropped_symbols_count = Symbols::Compact(I);
233 intptr_t dropped_symbols_count = 0;
234
235 if (FLAG_trace_precompiler) { 233 if (FLAG_trace_precompiler) {
236 THR_Print("Precompiled %" Pd " functions,", function_count_); 234 THR_Print("Precompiled %" Pd " functions,", function_count_);
237 THR_Print(" %" Pd " dynamic types,", class_count_); 235 THR_Print(" %" Pd " dynamic types,", class_count_);
238 THR_Print(" %" Pd " dynamic selectors.\n", selector_count_); 236 THR_Print(" %" Pd " dynamic selectors.\n", selector_count_);
239 237
240 THR_Print("Dropped %" Pd " functions,", dropped_function_count_); 238 THR_Print("Dropped %" Pd " functions,", dropped_function_count_);
241 THR_Print(" %" Pd " fields,", dropped_field_count_); 239 THR_Print(" %" Pd " fields,", dropped_field_count_);
242 THR_Print(" %" Pd " symbols,", dropped_symbols_count); 240 THR_Print(" %" Pd " symbols,", dropped_symbols_count);
243 THR_Print(" %" Pd " types,", dropped_type_count_); 241 THR_Print(" %" Pd " types,", dropped_type_count_);
244 THR_Print(" %" Pd " type arguments,", dropped_typearg_count_); 242 THR_Print(" %" Pd " type arguments,", dropped_typearg_count_);
(...skipping 2506 matching lines...) Expand 10 before | Expand all | Expand 10 after
2751 CompilationPipeline::New(thread->zone(), function); 2749 CompilationPipeline::New(thread->zone(), function);
2752 2750
2753 ASSERT(FLAG_precompiled_mode); 2751 ASSERT(FLAG_precompiled_mode);
2754 const bool optimized = function.IsOptimizable(); // False for natives. 2752 const bool optimized = function.IsOptimizable(); // False for natives.
2755 return PrecompileFunctionHelper(pipeline, function, optimized); 2753 return PrecompileFunctionHelper(pipeline, function, optimized);
2756 } 2754 }
2757 2755
2758 #endif // DART_PRECOMPILER 2756 #endif // DART_PRECOMPILER
2759 2757
2760 } // namespace dart 2758 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/raw_object.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698