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

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

Issue 307523002: Adds more ARM64 SIMD instructions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/disassembler_arm64.cc ('k') | runtime/vm/intermediate_language_arm.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/cha.h" 9 #include "vm/cha.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 20 matching lines...) Expand all
31 DECLARE_FLAG(bool, intrinsify); 31 DECLARE_FLAG(bool, intrinsify);
32 DECLARE_FLAG(bool, propagate_ic_data); 32 DECLARE_FLAG(bool, propagate_ic_data);
33 DECLARE_FLAG(int, optimization_counter_threshold); 33 DECLARE_FLAG(int, optimization_counter_threshold);
34 DECLARE_FLAG(bool, use_cha); 34 DECLARE_FLAG(bool, use_cha);
35 DECLARE_FLAG(bool, use_osr); 35 DECLARE_FLAG(bool, use_osr);
36 DECLARE_FLAG(int, stacktrace_every); 36 DECLARE_FLAG(int, stacktrace_every);
37 DECLARE_FLAG(charp, stacktrace_filter); 37 DECLARE_FLAG(charp, stacktrace_filter);
38 DECLARE_FLAG(int, deoptimize_every); 38 DECLARE_FLAG(int, deoptimize_every);
39 DECLARE_FLAG(charp, deoptimize_filter); 39 DECLARE_FLAG(charp, deoptimize_filter);
40 DECLARE_FLAG(bool, warn_on_javascript_compatibility); 40 DECLARE_FLAG(bool, warn_on_javascript_compatibility);
41
42 // TODO(zra): remove once arm64 has simd.
43 #if defined(TARGET_ARCH_ARM64)
44 DEFINE_FLAG(bool, enable_simd_inline, false,
45 "Enable inlining of SIMD related method calls.");
46 #else
47 DEFINE_FLAG(bool, enable_simd_inline, true, 41 DEFINE_FLAG(bool, enable_simd_inline, true,
48 "Enable inlining of SIMD related method calls."); 42 "Enable inlining of SIMD related method calls.");
49 #endif
50 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment."); 43 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment.");
51 44
52 // Assign locations to incoming arguments, i.e., values pushed above spill slots 45 // Assign locations to incoming arguments, i.e., values pushed above spill slots
53 // with PushArgument. Recursively allocates from outermost to innermost 46 // with PushArgument. Recursively allocates from outermost to innermost
54 // environment. 47 // environment.
55 void CompilerDeoptInfo::AllocateIncomingParametersRecursive( 48 void CompilerDeoptInfo::AllocateIncomingParametersRecursive(
56 Environment* env, 49 Environment* env,
57 intptr_t* stack_height) { 50 intptr_t* stack_height) {
58 if (env == NULL) return; 51 if (env == NULL) return;
59 AllocateIncomingParametersRecursive(env->outer(), stack_height); 52 AllocateIncomingParametersRecursive(env->outer(), stack_height);
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 1298
1306 for (int i = 0; i < len; i++) { 1299 for (int i = 0; i < len; i++) {
1307 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), 1300 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i),
1308 &Function::ZoneHandle(ic_data.GetTargetAt(i)), 1301 &Function::ZoneHandle(ic_data.GetTargetAt(i)),
1309 ic_data.GetCountAt(i))); 1302 ic_data.GetCountAt(i)));
1310 } 1303 }
1311 sorted->Sort(HighestCountFirst); 1304 sorted->Sort(HighestCountFirst);
1312 } 1305 }
1313 1306
1314 } // namespace dart 1307 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_arm64.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698