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

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

Issue 24837002: Optimize string interpolation by running it at compile time if all inputs are constant. This is don… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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) 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 49127618) \ 63 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 49127618) \
64 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1261559935) \ 64 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1261559935) \
65 V(_GrowableObjectArray, get:length, GrowableArrayLength, 1160417196) \ 65 V(_GrowableObjectArray, get:length, GrowableArrayLength, 1160417196) \
66 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 1509841570) \ 66 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 1509841570) \
67 V(_GrowableObjectArray, _setData, GrowableArraySetData, 1574432374) \ 67 V(_GrowableObjectArray, _setData, GrowableArraySetData, 1574432374) \
68 V(_GrowableObjectArray, _setLength, GrowableArraySetLength, 1112774552) \ 68 V(_GrowableObjectArray, _setLength, GrowableArraySetLength, 1112774552) \
69 V(_StringBase, get:length, StringBaseLength, 1483520063) \ 69 V(_StringBase, get:length, StringBaseLength, 1483520063) \
70 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 879849436) \ 70 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 879849436) \
71 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1958436584) \ 71 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 1958436584) \
72 V(_StringBase, [], StringBaseCharAt, 990046076) \ 72 V(_StringBase, [], StringBaseCharAt, 990046076) \
73 V(_StringBase, _interpolate, StringBaseInterpolate, 2060542382) \
73 V(_OneByteString, _setAt, OneByteStringSetAt, 308408714) \ 74 V(_OneByteString, _setAt, OneByteStringSetAt, 308408714) \
74 V(_IntegerImplementation, toDouble, IntegerToDouble, 2011998508) \ 75 V(_IntegerImplementation, toDouble, IntegerToDouble, 2011998508) \
75 V(_IntegerImplementation, _leftShiftWithMask32, IntegerLeftShiftWithMask32, \ 76 V(_IntegerImplementation, _leftShiftWithMask32, IntegerLeftShiftWithMask32, \
76 2095943661) \ 77 2095943661) \
77 V(_Double, toInt, DoubleToInteger, 1328149975) \ 78 V(_Double, toInt, DoubleToInteger, 1328149975) \
78 V(_Double, truncateToDouble, DoubleTruncate, 615732263) \ 79 V(_Double, truncateToDouble, DoubleTruncate, 615732263) \
79 V(_Double, roundToDouble, DoubleRound, 622146406) \ 80 V(_Double, roundToDouble, DoubleRound, 622146406) \
80 V(_Double, floorToDouble, DoubleFloor, 1614014643) \ 81 V(_Double, floorToDouble, DoubleFloor, 1614014643) \
81 V(_Double, ceilToDouble, DoubleCeil, 277859570) \ 82 V(_Double, ceilToDouble, DoubleCeil, 277859570) \
82 V(_Double, _modulo, DoubleMod, 1443289156) \ 83 V(_Double, _modulo, DoubleMod, 1443289156) \
(...skipping 6720 matching lines...) Expand 10 before | Expand all | Expand 10 after
6803 ForwardInstructionIterator* current_iterator_; 6804 ForwardInstructionIterator* current_iterator_;
6804 6805
6805 private: 6806 private:
6806 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6807 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6807 }; 6808 };
6808 6809
6809 6810
6810 } // namespace dart 6811 } // namespace dart
6811 6812
6812 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6813 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« runtime/vm/flow_graph_optimizer.cc ('K') | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698