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

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

Issue 11694003: In unoptimized code use call for instanceof instead of inlined checks. This allows us to collect ty… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
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_BUILDER_H_ 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_
6 #define VM_FLOW_GRAPH_BUILDER_H_ 6 #define VM_FLOW_GRAPH_BUILDER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // Creates a possibly uninstantiated type argument vector and the type 195 // Creates a possibly uninstantiated type argument vector and the type
196 // argument vector of the instantiator used in 196 // argument vector of the instantiator used in
197 // preparation of a constructor call. 197 // preparation of a constructor call.
198 // May be called only if allocating an object of a parameterized class. 198 // May be called only if allocating an object of a parameterized class.
199 void BuildConstructorTypeArguments( 199 void BuildConstructorTypeArguments(
200 ConstructorCallNode* node, 200 ConstructorCallNode* node,
201 Value** type_arguments, 201 Value** type_arguments,
202 Value** instantiator, 202 Value** instantiator,
203 ZoneGrowableArray<PushArgumentInstr*>* call_arguments); 203 ZoneGrowableArray<PushArgumentInstr*>* call_arguments);
204 204
205 void BuildTypecheckPushArguments(
206 intptr_t token_pos,
207 PushArgumentInstr** push_instantiator,
208 PushArgumentInstr** push_instantiator_type_arguments);
205 void BuildTypecheckArguments(intptr_t token_pos, 209 void BuildTypecheckArguments(intptr_t token_pos,
206 Value** instantiator, 210 Value** instantiator,
207 Value** instantiator_type_arguments); 211 Value** instantiator_type_arguments);
208 Value* BuildInstantiator(); 212 Value* BuildInstantiator();
209 Value* BuildInstantiatorTypeArguments(intptr_t token_pos, 213 Value* BuildInstantiatorTypeArguments(intptr_t token_pos,
210 Value* instantiator); 214 Value* instantiator);
211 215
212 // Perform a type check on the given value. 216 // Perform a type check on the given value.
213 AssertAssignableInstr* BuildAssertAssignable(intptr_t token_pos, 217 AssertAssignableInstr* BuildAssertAssignable(intptr_t token_pos,
214 Value* value, 218 Value* value,
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 // Output parameters. 413 // Output parameters.
410 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 414 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
411 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 415 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
412 416
413 intptr_t condition_token_pos_; 417 intptr_t condition_token_pos_;
414 }; 418 };
415 419
416 } // namespace dart 420 } // namespace dart
417 421
418 #endif // VM_FLOW_GRAPH_BUILDER_H_ 422 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698