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

Side by Side Diff: runtime/vm/intrinsifier.h

Issue 2371133004: Omit unreachable fall through code for graph intrinsics, e.g. Array.length. (Closed)
Patch Set: Created 4 years, 2 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/flow_graph_compiler.cc ('k') | runtime/vm/intrinsifier.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 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #ifndef VM_INTRINSIFIER_H_ 6 #ifndef VM_INTRINSIFIER_H_
7 #define VM_INTRINSIFIER_H_ 7 #define VM_INTRINSIFIER_H_
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/method_recognizer.h" 10 #include "vm/method_recognizer.h"
11 11
12 namespace dart { 12 namespace dart {
13 13
14 // Forward declarations. 14 // Forward declarations.
15 class Assembler; 15 class Assembler;
16 class FlowGraphCompiler; 16 class FlowGraphCompiler;
17 class Function; 17 class Function;
18 class TargetEntryInstr; 18 class TargetEntryInstr;
19 class ParsedFunction; 19 class ParsedFunction;
20 class FlowGraph; 20 class FlowGraph;
21 21
22 class Intrinsifier : public AllStatic { 22 class Intrinsifier : public AllStatic {
23 public: 23 public:
24 static void Intrinsify(const ParsedFunction& parsed_function, 24 static bool Intrinsify(const ParsedFunction& parsed_function,
25 FlowGraphCompiler* compiler); 25 FlowGraphCompiler* compiler);
26 #if defined(DART_NO_SNAPSHOT) 26 #if defined(DART_NO_SNAPSHOT)
27 static void InitializeState(); 27 static void InitializeState();
28 #endif 28 #endif
29 29
30 static bool GraphIntrinsify(const ParsedFunction& parsed_function, 30 static bool GraphIntrinsify(const ParsedFunction& parsed_function,
31 FlowGraphCompiler* compiler); 31 FlowGraphCompiler* compiler);
32 32
33 static intptr_t ParameterSlotFromSp(); 33 static intptr_t ParameterSlotFromSp();
34 34
(...skipping 20 matching lines...) Expand all
55 55
56 GRAPH_INTRINSICS_LIST(DECLARE_FUNCTION) 56 GRAPH_INTRINSICS_LIST(DECLARE_FUNCTION)
57 57
58 #undef DECLARE_FUNCTION 58 #undef DECLARE_FUNCTION
59 #endif 59 #endif
60 }; 60 };
61 61
62 } // namespace dart 62 } // namespace dart
63 63
64 #endif // VM_INTRINSIFIER_H_ 64 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698