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

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

Issue 2716593002: Propagate this-specialization to regular (megamorphic) calls (Closed)
Patch Set: Cleanups 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
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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 const ICData* GetOrAddInstanceCallICData(intptr_t deopt_id, 565 const ICData* GetOrAddInstanceCallICData(intptr_t deopt_id,
566 const String& target_name, 566 const String& target_name,
567 const Array& arguments_descriptor, 567 const Array& arguments_descriptor,
568 intptr_t num_args_tested); 568 intptr_t num_args_tested);
569 569
570 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, 570 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id,
571 const Function& target, 571 const Function& target,
572 const Array& arguments_descriptor, 572 const Array& arguments_descriptor,
573 intptr_t num_args_tested); 573 intptr_t num_args_tested);
574 574
575 static const ICData& TrySpecializeICData(const ICData& ic_data, intptr_t cid);
576
575 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const { 577 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const {
576 return *deopt_id_to_ic_data_; 578 return *deopt_id_to_ic_data_;
577 } 579 }
578 580
579 Thread* thread() const { return thread_; } 581 Thread* thread() const { return thread_; }
580 Isolate* isolate() const { return thread_->isolate(); } 582 Isolate* isolate() const { return thread_->isolate(); }
581 Zone* zone() const { return zone_; } 583 Zone* zone() const { return zone_; }
582 584
583 void AddStubCallTarget(const Code& code); 585 void AddStubCallTarget(const Code& code);
584 586
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; 800 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_;
799 801
800 Array& edge_counters_array_; 802 Array& edge_counters_array_;
801 803
802 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 804 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
803 }; 805 };
804 806
805 } // namespace dart 807 } // namespace dart
806 808
807 #endif // RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ 809 #endif // RUNTIME_VM_FLOW_GRAPH_COMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698