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

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

Issue 19721004: Allow inlining of closures with a context change. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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_inliner.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 V(_Uint32x4, withFlagX, Uint32x4WithFlagX, 25547408) \ 117 V(_Uint32x4, withFlagX, Uint32x4WithFlagX, 25547408) \
118 V(_Uint32x4, withFlagY, Uint32x4WithFlagY, 1176493005) \ 118 V(_Uint32x4, withFlagY, Uint32x4WithFlagY, 1176493005) \
119 V(_Uint32x4, withFlagZ, Uint32x4WithFlagZ, 1237443319) \ 119 V(_Uint32x4, withFlagZ, Uint32x4WithFlagZ, 1237443319) \
120 V(_Uint32x4, withFlagW, Uint32x4WithFlagW, 797585077) \ 120 V(_Uint32x4, withFlagW, Uint32x4WithFlagW, 797585077) \
121 V(_Uint32x4, _toFloat32x4, Uint32x4ToUint32x4, 912844231) \ 121 V(_Uint32x4, _toFloat32x4, Uint32x4ToUint32x4, 912844231) \
122 122
123 123
124 // A list of core function that should always be inlined. 124 // A list of core function that should always be inlined.
125 #define INLINE_WHITE_LIST(V) \ 125 #define INLINE_WHITE_LIST(V) \
126 V(ListIterator, moveNext, ListIteratorMoveNext, 203118278) \ 126 V(ListIterator, moveNext, ListIteratorMoveNext, 203118278) \
127 V(_GrowableObjectArray, get:iterator, GrowableArrayIterator, 810824939) 127 V(_GrowableObjectArray, get:iterator, GrowableArrayIterator, 810824939) \
128 V(_GrowableObjectArray, forEach, GrowableArrayForEach, 619038738)
129
128 130
129 // Class that recognizes the name and owner of a function and returns the 131 // Class that recognizes the name and owner of a function and returns the
130 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable 132 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable
131 // functions. 133 // functions.
132 class MethodRecognizer : public AllStatic { 134 class MethodRecognizer : public AllStatic {
133 public: 135 public:
134 enum Kind { 136 enum Kind {
135 kUnknown, 137 kUnknown,
136 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, 138 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name,
137 RECOGNIZED_LIST(DEFINE_ENUM_LIST) 139 RECOGNIZED_LIST(DEFINE_ENUM_LIST)
(...skipping 6353 matching lines...) Expand 10 before | Expand all | Expand 10 after
6491 ForwardInstructionIterator* current_iterator_; 6493 ForwardInstructionIterator* current_iterator_;
6492 6494
6493 private: 6495 private:
6494 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6496 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6495 }; 6497 };
6496 6498
6497 6499
6498 } // namespace dart 6500 } // namespace dart
6499 6501
6500 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6502 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698