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

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

Issue 1739963002: Remember token position where a function was inlined (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/compiler.cc ('k') | runtime/vm/flow_graph_compiler.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 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 bool is_marked_; 295 bool is_marked_;
296 }; 296 };
297 297
298 public: 298 public:
299 FlowGraphCompiler( 299 FlowGraphCompiler(
300 Assembler* assembler, 300 Assembler* assembler,
301 FlowGraph* flow_graph, 301 FlowGraph* flow_graph,
302 const ParsedFunction& parsed_function, 302 const ParsedFunction& parsed_function,
303 bool is_optimizing, 303 bool is_optimizing,
304 const GrowableArray<const Function*>& inline_id_to_function, 304 const GrowableArray<const Function*>& inline_id_to_function,
305 const GrowableArray<TokenPosition>& inline_id_to_token_pos,
305 const GrowableArray<intptr_t>& caller_inline_id); 306 const GrowableArray<intptr_t>& caller_inline_id);
306 307
307 ~FlowGraphCompiler(); 308 ~FlowGraphCompiler();
308 309
309 static bool SupportsUnboxedDoubles(); 310 static bool SupportsUnboxedDoubles();
310 static bool SupportsUnboxedMints(); 311 static bool SupportsUnboxedMints();
311 static bool SupportsSinCos(); 312 static bool SupportsSinCos();
312 static bool SupportsUnboxedSimd128(); 313 static bool SupportsUnboxedSimd128();
313 static bool SupportsHardwareDivision(); 314 static bool SupportsHardwareDivision();
314 static bool CanConvertUnboxedMintToDouble(); 315 static bool CanConvertUnboxedMintToDouble();
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 584
584 const Array& inlined_code_intervals() const { 585 const Array& inlined_code_intervals() const {
585 return inlined_code_intervals_; 586 return inlined_code_intervals_;
586 } 587 }
587 588
588 RawArray* edge_counters_array() const { 589 RawArray* edge_counters_array() const {
589 return edge_counters_array_.raw(); 590 return edge_counters_array_.raw();
590 } 591 }
591 592
592 RawArray* InliningIdToFunction() const; 593 RawArray* InliningIdToFunction() const;
593 594 RawArray* InliningIdToTokenPos() const;
594 RawArray* CallerInliningIdMap() const; 595 RawArray* CallerInliningIdMap() const;
595 596
596 private: 597 private:
597 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. 598 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_.
598 599
599 void EmitFrameEntry(); 600 void EmitFrameEntry();
600 601
601 void AddStaticCallTarget(const Function& function); 602 void AddStaticCallTarget(const Function& function);
602 603
603 void GenerateDeferredCode(); 604 void GenerateDeferredCode();
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 Environment* pending_deoptimization_env_; 781 Environment* pending_deoptimization_env_;
781 782
782 intptr_t lazy_deopt_pc_offset_; 783 intptr_t lazy_deopt_pc_offset_;
783 784
784 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; 785 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_;
785 786
786 Array& edge_counters_array_; 787 Array& edge_counters_array_;
787 788
788 Array& inlined_code_intervals_; 789 Array& inlined_code_intervals_;
789 const GrowableArray<const Function*>& inline_id_to_function_; 790 const GrowableArray<const Function*>& inline_id_to_function_;
791 const GrowableArray<TokenPosition>& inline_id_to_token_pos_;
790 const GrowableArray<intptr_t>& caller_inline_id_; 792 const GrowableArray<intptr_t>& caller_inline_id_;
791 793
792 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 794 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
793 }; 795 };
794 796
795 } // namespace dart 797 } // namespace dart
796 798
797 #endif // VM_FLOW_GRAPH_COMPILER_H_ 799 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698