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

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

Issue 14703005: Added Object._cid getter, optimized it. Added to (some) classes a static final _clCid. Use those to… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/flow_graph_optimizer.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_OPTIMIZER_H_ 5 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_
6 #define VM_FLOW_GRAPH_OPTIMIZER_H_ 6 #define VM_FLOW_GRAPH_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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 MethodRecognizer::Kind getter); 148 MethodRecognizer::Kind getter);
149 149
150 void InlineImplicitInstanceGetter(InstanceCallInstr* call); 150 void InlineImplicitInstanceGetter(InstanceCallInstr* call);
151 void InlineArrayLengthGetter(InstanceCallInstr* call, 151 void InlineArrayLengthGetter(InstanceCallInstr* call,
152 intptr_t length_offset, 152 intptr_t length_offset,
153 bool is_immutable, 153 bool is_immutable,
154 MethodRecognizer::Kind kind); 154 MethodRecognizer::Kind kind);
155 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); 155 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call);
156 void InlineStringLengthGetter(InstanceCallInstr* call); 156 void InlineStringLengthGetter(InstanceCallInstr* call);
157 void InlineStringIsEmptyGetter(InstanceCallInstr* call); 157 void InlineStringIsEmptyGetter(InstanceCallInstr* call);
158 void InlineObjectCid(InstanceCallInstr* call);
158 159
159 RawBool* InstanceOfAsBool(const ICData& ic_data, 160 RawBool* InstanceOfAsBool(const ICData& ic_data,
160 const AbstractType& type) const; 161 const AbstractType& type) const;
161 162
162 void ReplaceWithMathCFunction(InstanceCallInstr* call, 163 void ReplaceWithMathCFunction(InstanceCallInstr* call,
163 MethodRecognizer::Kind recognized_kind); 164 MethodRecognizer::Kind recognized_kind);
164 165
165 void HandleRelationalOp(RelationalOpInstr* comp); 166 void HandleRelationalOp(RelationalOpInstr* comp);
166 167
167 // Visit an equality compare. The current instruction can be the 168 // Visit an equality compare. The current instruction can be the
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // Optimize spill stores inside try-blocks by identifying values that always 356 // Optimize spill stores inside try-blocks by identifying values that always
356 // contain a single known constant at catch block entry. 357 // contain a single known constant at catch block entry.
357 class TryCatchAnalyzer : public AllStatic { 358 class TryCatchAnalyzer : public AllStatic {
358 public: 359 public:
359 static void Optimize(FlowGraph* flow_graph); 360 static void Optimize(FlowGraph* flow_graph);
360 }; 361 };
361 362
362 } // namespace dart 363 } // namespace dart
363 364
364 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 365 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698