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

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

Issue 1920103004: Added flag --inline_smi_string_hashcode and --inline_smi_string_hashcode_ratio to decide when/if sh… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
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 #ifndef VM_IL_PRINTER_H_ 5 #ifndef VM_IL_PRINTER_H_
6 #define VM_IL_PRINTER_H_ 6 #define VM_IL_PRINTER_H_
7 7
8 #include "vm/flow_graph.h" 8 #include "vm/flow_graph.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static void PrintTypeCheck(const ParsedFunction& parsed_function, 50 static void PrintTypeCheck(const ParsedFunction& parsed_function,
51 TokenPosition token_pos, 51 TokenPosition token_pos,
52 Value* value, 52 Value* value,
53 const AbstractType& dst_type, 53 const AbstractType& dst_type,
54 const String& dst_name, 54 const String& dst_name,
55 bool eliminated); 55 bool eliminated);
56 static void PrintBlock(BlockEntryInstr* block, bool print_locations); 56 static void PrintBlock(BlockEntryInstr* block, bool print_locations);
57 57
58 static void PrintGraph(const char* phase, FlowGraph* flow_graph); 58 static void PrintGraph(const char* phase, FlowGraph* flow_graph);
59 59
60 // Debugging helper function. 60 // Debugging helper function. If 'num_checks_to_print' is not specified
61 static void PrintICData(const ICData& ic_data); 61 // or is negative, all checks will be printed.
62 static void PrintICData(const ICData& ic_data,
63 intptr_t num_checks_to_print = -1);
zra 2016/04/27 16:28:17 It looks like this function only previously had on
srdjan 2016/04/27 18:10:22 Using kPrintAll, but leaving it as default as I of
62 64
63 static bool ShouldPrint(const Function& function); 65 static bool ShouldPrint(const Function& function);
64 66
65 static bool PassesFilter(const char* filter, const Function& function); 67 static bool PassesFilter(const char* filter, const Function& function);
66 68
67 private: 69 private:
68 const Function& function_; 70 const Function& function_;
69 const GrowableArray<BlockEntryInstr*>& block_order_; 71 const GrowableArray<BlockEntryInstr*>& block_order_;
70 const bool print_locations_; 72 const bool print_locations_;
71 }; 73 };
72 74
73 } // namespace dart 75 } // namespace dart
74 76
75 #endif // VM_IL_PRINTER_H_ 77 #endif // VM_IL_PRINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698