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

Side by Side Diff: runtime/vm/flow_graph_compiler.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, 8 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 | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/flow_graph_compiler.cc » ('J')
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 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_
6 #define VM_FLOW_GRAPH_COMPILER_H_ 6 #define VM_FLOW_GRAPH_COMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 ASSERT(code_source_map_builder_ != NULL); 609 ASSERT(code_source_map_builder_ != NULL);
610 return code_source_map_builder_; 610 return code_source_map_builder_;
611 } 611 }
612 612
613 void BeginCodeSourceRange(); 613 void BeginCodeSourceRange();
614 bool EndCodeSourceRange(TokenPosition token_pos); 614 bool EndCodeSourceRange(TokenPosition token_pos);
615 615
616 private: 616 private:
617 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. 617 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_.
618 618
619 static bool ShouldInlineSmiStringHashCode(const ICData& ic_data);
620
619 void EmitFrameEntry(); 621 void EmitFrameEntry();
620 622
621 void AddStaticCallTarget(const Function& function); 623 void AddStaticCallTarget(const Function& function);
622 624
623 void GenerateDeferredCode(); 625 void GenerateDeferredCode();
624 626
625 void EmitInstructionPrologue(Instruction* instr); 627 void EmitInstructionPrologue(Instruction* instr);
626 void EmitInstructionEpilogue(Instruction* instr); 628 void EmitInstructionEpilogue(Instruction* instr);
627 629
628 // Emit code to load a Value into register 'dst'. 630 // Emit code to load a Value into register 'dst'.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 const GrowableArray<const Function*>& inline_id_to_function_; 820 const GrowableArray<const Function*>& inline_id_to_function_;
819 const GrowableArray<TokenPosition>& inline_id_to_token_pos_; 821 const GrowableArray<TokenPosition>& inline_id_to_token_pos_;
820 const GrowableArray<intptr_t>& caller_inline_id_; 822 const GrowableArray<intptr_t>& caller_inline_id_;
821 823
822 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 824 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
823 }; 825 };
824 826
825 } // namespace dart 827 } // namespace dart
826 828
827 #endif // VM_FLOW_GRAPH_COMPILER_H_ 829 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/flow_graph_compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698