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

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

Issue 1347203005: VM: Intrinsify some common SIMD methods to speed up precompiled SIMD code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added helper to create unboxing instructions Created 5 years, 3 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/method_recognizer.h ('k') | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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/method_recognizer.h" 5 #include "vm/method_recognizer.h"
6 6
7 #include "vm/object.h" 7 #include "vm/object.h"
8 #include "vm/symbols.h" 8 #include "vm/symbols.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 10 matching lines...) Expand all
21 21
22 22
23 bool MethodRecognizer::PolymorphicTarget(const Function& function) { 23 bool MethodRecognizer::PolymorphicTarget(const Function& function) {
24 return function.is_polymorphic_target(); 24 return function.is_polymorphic_target();
25 } 25 }
26 26
27 27
28 #define KIND_TO_STRING(class_name, function_name, enum_name, fp) \ 28 #define KIND_TO_STRING(class_name, function_name, enum_name, fp) \
29 #enum_name, 29 #enum_name,
30 static const char* recognized_list_method_name[] = { 30 static const char* recognized_list_method_name[] = {
31 RECOGNIZED_LIST(KIND_TO_STRING) 31 "Unknown",
32 RECOGNIZED_LIST(KIND_TO_STRING)
32 }; 33 };
33 #undef KIND_TO_STRING 34 #undef KIND_TO_STRING
34 35
35 const char* MethodRecognizer::KindToCString(Kind kind) { 36 const char* MethodRecognizer::KindToCString(Kind kind) {
36 if (kind > kUnknown && kind < kNumRecognizedMethods) 37 if (kind > kUnknown && kind < kNumRecognizedMethods)
37 return recognized_list_method_name[kind]; 38 return recognized_list_method_name[kind];
38 return "?"; 39 return "?";
39 } 40 }
40 41
41 42
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 POLYMORPHIC_TARGET_LIST(SET_IS_POLYMORPHIC_TARGET); 86 POLYMORPHIC_TARGET_LIST(SET_IS_POLYMORPHIC_TARGET);
86 87
87 #undef SET_RECOGNIZED_KIND 88 #undef SET_RECOGNIZED_KIND
88 #undef SET_IS_ALWAYS_INLINE 89 #undef SET_IS_ALWAYS_INLINE
89 #undef SET_IS_POLYMORPHIC_TARGET 90 #undef SET_IS_POLYMORPHIC_TARGET
90 #undef SET_FUNCTION_BIT 91 #undef SET_FUNCTION_BIT
91 } 92 }
92 #endif // defined(DART_NO_SNAPSHOT). 93 #endif // defined(DART_NO_SNAPSHOT).
93 94
94 } // namespace dart 95 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/method_recognizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698