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

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

Issue 10918164: Inline GrowableObjectArray capacity getter, use CHA to eliminate load/store fields class checks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/flow_graph_optimizer.cc ('k') | no next file » | 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_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_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 15 matching lines...) Expand all
26 class Instruction; 26 class Instruction;
27 class LocalVariable; 27 class LocalVariable;
28 28
29 29
30 // TODO(srdjan): Add _ByteArrayBase, get:length. 30 // TODO(srdjan): Add _ByteArrayBase, get:length.
31 31
32 #define RECOGNIZED_LIST(V) \ 32 #define RECOGNIZED_LIST(V) \
33 V(ObjectArray, get:length, ObjectArrayLength) \ 33 V(ObjectArray, get:length, ObjectArrayLength) \
34 V(ImmutableArray, get:length, ImmutableArrayLength) \ 34 V(ImmutableArray, get:length, ImmutableArrayLength) \
35 V(GrowableObjectArray, get:length, GrowableArrayLength) \ 35 V(GrowableObjectArray, get:length, GrowableArrayLength) \
36 V(GrowableObjectArray, get:capacity, GrowableArrayCapacity) \
36 V(StringBase, get:length, StringBaseLength) \ 37 V(StringBase, get:length, StringBaseLength) \
37 V(IntegerImplementation, toDouble, IntegerToDouble) \ 38 V(IntegerImplementation, toDouble, IntegerToDouble) \
38 V(Double, toDouble, DoubleToDouble) \ 39 V(Double, toDouble, DoubleToDouble) \
39 V(::, sqrt, MathSqrt) \ 40 V(::, sqrt, MathSqrt) \
40 41
41 // Class that recognizes the name and owner of a function and returns the 42 // Class that recognizes the name and owner of a function and returns the
42 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable 43 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable
43 // functions. 44 // functions.
44 class MethodRecognizer : public AllStatic { 45 class MethodRecognizer : public AllStatic {
45 public: 46 public:
(...skipping 3254 matching lines...) Expand 10 before | Expand all | Expand 10 after
3300 ForwardInstructionIterator* current_iterator_; 3301 ForwardInstructionIterator* current_iterator_;
3301 3302
3302 private: 3303 private:
3303 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 3304 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
3304 }; 3305 };
3305 3306
3306 3307
3307 } // namespace dart 3308 } // namespace dart
3308 3309
3309 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 3310 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698