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

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

Issue 2226893002: Optimize AOT's switchable calls for the monomorphic case. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 4 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_patcher_x64.cc ('k') | runtime/vm/debugger.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 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 LanguageError::Cast(error).kind() != Report::kBailout); 1317 LanguageError::Cast(error).kind() != Report::kBailout);
1318 return error.raw(); 1318 return error.raw();
1319 } 1319 }
1320 } 1320 }
1321 1321
1322 per_compile_timer.Stop(); 1322 per_compile_timer.Stop();
1323 1323
1324 if (trace_compiler && success) { 1324 if (trace_compiler && success) {
1325 THR_Print("--> '%s' entry: %#" Px " size: %" Pd " time: %" Pd64 " us\n", 1325 THR_Print("--> '%s' entry: %#" Px " size: %" Pd " time: %" Pd64 " us\n",
1326 function.ToFullyQualifiedCString(), 1326 function.ToFullyQualifiedCString(),
1327 Code::Handle(function.CurrentCode()).EntryPoint(), 1327 Code::Handle(function.CurrentCode()).PayloadStart(),
1328 Code::Handle(function.CurrentCode()).Size(), 1328 Code::Handle(function.CurrentCode()).Size(),
1329 per_compile_timer.TotalElapsedTime()); 1329 per_compile_timer.TotalElapsedTime());
1330 } 1330 }
1331 1331
1332 if (FLAG_support_debugger) { 1332 if (FLAG_support_debugger) {
1333 isolate->debugger()->NotifyCompilation(function); 1333 isolate->debugger()->NotifyCompilation(function);
1334 } 1334 }
1335 1335
1336 if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) { 1336 if (FLAG_disassemble && FlowGraphPrinter::ShouldPrint(function)) {
1337 SafepointOperationScope safepoint_scope(thread); 1337 SafepointOperationScope safepoint_scope(thread);
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 2179
2180 2180
2181 bool BackgroundCompiler::IsDisabled() { 2181 bool BackgroundCompiler::IsDisabled() {
2182 UNREACHABLE(); 2182 UNREACHABLE();
2183 return true; 2183 return true;
2184 } 2184 }
2185 2185
2186 #endif // DART_PRECOMPILED_RUNTIME 2186 #endif // DART_PRECOMPILED_RUNTIME
2187 2187
2188 } // namespace dart 2188 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_patcher_x64.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698