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

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

Issue 2685723004: Revert "Use CodeSourceMap for stack traces (still JIT only)." (Closed)
Patch Set: Created 3 years, 10 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/exceptions.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 RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ 5 #ifndef RUNTIME_VM_FLOW_GRAPH_COMPILER_H_
6 #define RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ 6 #define RUNTIME_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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 // Accessors. 301 // Accessors.
302 Assembler* assembler() const { return assembler_; } 302 Assembler* assembler() const { return assembler_; }
303 const ParsedFunction& parsed_function() const { return parsed_function_; } 303 const ParsedFunction& parsed_function() const { return parsed_function_; }
304 const GrowableArray<BlockEntryInstr*>& block_order() const { 304 const GrowableArray<BlockEntryInstr*>& block_order() const {
305 return block_order_; 305 return block_order_;
306 } 306 }
307 307
308 const FlowGraph& flow_graph() const { return flow_graph_; } 308 const FlowGraph& flow_graph() const { return flow_graph_; }
309 309
310 DescriptorList* pc_descriptors_list() const { return pc_descriptors_list_; }
310 BlockEntryInstr* current_block() const { return current_block_; } 311 BlockEntryInstr* current_block() const { return current_block_; }
311 void set_current_block(BlockEntryInstr* value) { current_block_ = value; } 312 void set_current_block(BlockEntryInstr* value) { current_block_ = value; }
312 static bool CanOptimize(); 313 static bool CanOptimize();
313 bool CanOptimizeFunction() const; 314 bool CanOptimizeFunction() const;
314 bool CanOSRFunction() const; 315 bool CanOSRFunction() const;
315 bool is_optimizing() const { return is_optimizing_; } 316 bool is_optimizing() const { return is_optimizing_; }
316 317
317 void EnterIntrinsicMode(); 318 void EnterIntrinsicMode();
318 void ExitIntrinsicMode(); 319 void ExitIntrinsicMode();
319 bool intrinsic_mode() const { return intrinsic_mode_; } 320 bool intrinsic_mode() const { return intrinsic_mode_; }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 491
491 void AddExceptionHandler(intptr_t try_index, 492 void AddExceptionHandler(intptr_t try_index,
492 intptr_t outer_try_index, 493 intptr_t outer_try_index,
493 intptr_t pc_offset, 494 intptr_t pc_offset,
494 const Array& handler_types, 495 const Array& handler_types,
495 bool needs_stacktrace); 496 bool needs_stacktrace);
496 void SetNeedsStackTrace(intptr_t try_index); 497 void SetNeedsStackTrace(intptr_t try_index);
497 void AddCurrentDescriptor(RawPcDescriptors::Kind kind, 498 void AddCurrentDescriptor(RawPcDescriptors::Kind kind,
498 intptr_t deopt_id, 499 intptr_t deopt_id,
499 TokenPosition token_pos); 500 TokenPosition token_pos);
500 void AddDescriptor(RawPcDescriptors::Kind kind,
501 intptr_t pc_offset,
502 intptr_t deopt_id,
503 TokenPosition token_pos,
504 intptr_t try_index);
505 501
506 void RecordSafepoint(LocationSummary* locs, 502 void RecordSafepoint(LocationSummary* locs,
507 intptr_t slow_path_argument_count = 0); 503 intptr_t slow_path_argument_count = 0);
508 504
509 Label* AddDeoptStub(intptr_t deopt_id, 505 Label* AddDeoptStub(intptr_t deopt_id,
510 ICData::DeoptReasonId reason, 506 ICData::DeoptReasonId reason,
511 uint32_t flags = 0); 507 uint32_t flags = 0);
512 508
513 #if defined(TARGET_ARCH_DBC) 509 #if defined(TARGET_ARCH_DBC)
514 void EmitDeopt(intptr_t deopt_id, 510 void EmitDeopt(intptr_t deopt_id,
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; 794 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_;
799 795
800 Array& edge_counters_array_; 796 Array& edge_counters_array_;
801 797
802 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 798 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
803 }; 799 };
804 800
805 } // namespace dart 801 } // namespace dart
806 802
807 #endif // RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ 803 #endif // RUNTIME_VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698