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

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

Issue 2856543002: Use off-heap data for class check instructions (Closed)
Patch Set: Created 3 years, 7 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/aot_optimizer.cc » ('j') | runtime/vm/aot_optimizer.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 RUNTIME_VM_AOT_OPTIMIZER_H_ 5 #ifndef RUNTIME_VM_AOT_OPTIMIZER_H_
6 #define RUNTIME_VM_AOT_OPTIMIZER_H_ 6 #define RUNTIME_VM_AOT_OPTIMIZER_H_
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bool TypeCheckAsClassEquality(const AbstractType& type); 71 bool TypeCheckAsClassEquality(const AbstractType& type);
72 void ReplaceWithTypeCast(InstanceCallInstr* instr); 72 void ReplaceWithTypeCast(InstanceCallInstr* instr);
73 73
74 bool TryReplaceInstanceCallWithInline(InstanceCallInstr* call); 74 bool TryReplaceInstanceCallWithInline(InstanceCallInstr* call);
75 75
76 // Insert a check of 'to_check' determined by 'unary_checks'. If the 76 // Insert a check of 'to_check' determined by 'unary_checks'. If the
77 // check fails it will deoptimize to 'deopt_id' using the deoptimization 77 // check fails it will deoptimize to 'deopt_id' using the deoptimization
78 // environment 'deopt_environment'. The check is inserted immediately 78 // environment 'deopt_environment'. The check is inserted immediately
79 // before 'insert_before'. 79 // before 'insert_before'.
80 void AddCheckClass(Definition* to_check, 80 void AddCheckClass(Definition* to_check,
81 const ICData& unary_checks, 81 const CallTargets& targets,
82 intptr_t deopt_id, 82 intptr_t deopt_id,
83 Environment* deopt_environment, 83 Environment* deopt_environment,
84 Instruction* insert_before); 84 Instruction* insert_before);
85 Instruction* GetCheckClass(Definition* to_check,
86 const ICData& unary_checks,
87 intptr_t deopt_id,
88 TokenPosition token_pos);
89 85
90 // Insert a Smi check if needed. 86 // Insert a Smi check if needed.
91 void AddCheckSmi(Definition* to_check, 87 void AddCheckSmi(Definition* to_check,
92 intptr_t deopt_id, 88 intptr_t deopt_id,
93 Environment* deopt_environment, 89 Environment* deopt_environment,
94 Instruction* insert_before); 90 Instruction* insert_before);
95 91
96 // Add a class check for a call's first argument immediately before the 92 // Add a class check for a call's first argument immediately before the
97 // call, using the call's IC data to determine the check, and the call's 93 // call, using the call's IC data to determine the check, and the call's
98 // deopt ID and deoptimization environment if the check fails. 94 // deopt ID and deoptimization environment if the check fails.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 135
140 bool has_unique_no_such_method_; 136 bool has_unique_no_such_method_;
141 137
142 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); 138 DISALLOW_COPY_AND_ASSIGN(AotOptimizer);
143 }; 139 };
144 140
145 141
146 } // namespace dart 142 } // namespace dart
147 143
148 #endif // RUNTIME_VM_AOT_OPTIMIZER_H_ 144 #endif // RUNTIME_VM_AOT_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/aot_optimizer.cc » ('j') | runtime/vm/aot_optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698