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

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

Issue 895603002: VM: Improve polymorphic check-class in optimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 if (current_block_ == NULL) { 494 if (current_block_ == NULL) {
495 return CatchClauseNode::kInvalidTryIndex; 495 return CatchClauseNode::kInvalidTryIndex;
496 } 496 }
497 return current_block_->try_index(); 497 return current_block_->try_index();
498 } 498 }
499 499
500 bool may_reoptimize() const { return may_reoptimize_; } 500 bool may_reoptimize() const { return may_reoptimize_; }
501 501
502 // Returns 'sorted' array in decreasing count order. 502 // Returns 'sorted' array in decreasing count order.
503 static void SortICDataByCount(const ICData& ic_data, 503 static void SortICDataByCount(const ICData& ic_data,
504 GrowableArray<CidTarget>* sorted); 504 GrowableArray<CidTarget>* sorted,
505 bool drop_smi);
505 506
506 // Use in unoptimized compilation to preserve/reuse ICData. 507 // Use in unoptimized compilation to preserve/reuse ICData.
507 const ICData* GetOrAddInstanceCallICData(intptr_t deopt_id, 508 const ICData* GetOrAddInstanceCallICData(intptr_t deopt_id,
508 const String& target_name, 509 const String& target_name,
509 const Array& arguments_descriptor, 510 const Array& arguments_descriptor,
510 intptr_t num_args_tested); 511 intptr_t num_args_tested);
511 512
512 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, 513 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id,
513 const Function& target, 514 const Function& target,
514 const Array& arguments_descriptor, 515 const Array& arguments_descriptor,
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 685
685 const Array* inlined_code_intervals_; 686 const Array* inlined_code_intervals_;
686 const GrowableArray<const Function*>& inline_id_to_function_; 687 const GrowableArray<const Function*>& inline_id_to_function_;
687 688
688 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 689 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
689 }; 690 };
690 691
691 } // namespace dart 692 } // namespace dart
692 693
693 #endif // VM_FLOW_GRAPH_COMPILER_H_ 694 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698