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

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

Issue 12049056: Use builtin fmod for double modulo operation. (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
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.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) 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 711547329) \ 42 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 711547329) \
43 V(_StringBase, charCodeAt, StringBaseCharCodeAt, 984449525) \ 43 V(_StringBase, charCodeAt, StringBaseCharCodeAt, 984449525) \
44 V(_StringBase, [], StringBaseCharAt, 1062366987) \ 44 V(_StringBase, [], StringBaseCharAt, 1062366987) \
45 V(_IntegerImplementation, toDouble, IntegerToDouble, 733149324) \ 45 V(_IntegerImplementation, toDouble, IntegerToDouble, 733149324) \
46 V(_Double, toInt, DoubleToInteger, 362666636) \ 46 V(_Double, toInt, DoubleToInteger, 362666636) \
47 V(_Double, truncate, DoubleTruncate, 620870996) \ 47 V(_Double, truncate, DoubleTruncate, 620870996) \
48 V(_Double, round, DoubleRound, 620870996) \ 48 V(_Double, round, DoubleRound, 620870996) \
49 V(_Double, floor, DoubleFloor, 620870996) \ 49 V(_Double, floor, DoubleFloor, 620870996) \
50 V(_Double, ceil, DoubleCeil, 620870996) \ 50 V(_Double, ceil, DoubleCeil, 620870996) \
51 V(_Double, pow, DoublePow, 1131958048) \ 51 V(_Double, pow, DoublePow, 1131958048) \
52 V(_Double, _modulo, DoubleMod, 437099337) \
52 V(::, sqrt, MathSqrt, 1662640002) \ 53 V(::, sqrt, MathSqrt, 1662640002) \
53 54
54 // Class that recognizes the name and owner of a function and returns the 55 // Class that recognizes the name and owner of a function and returns the
55 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable 56 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable
56 // functions. 57 // functions.
57 class MethodRecognizer : public AllStatic { 58 class MethodRecognizer : public AllStatic {
58 public: 59 public:
59 enum Kind { 60 enum Kind {
60 kUnknown, 61 kUnknown,
61 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, 62 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name,
(...skipping 4383 matching lines...) Expand 10 before | Expand all | Expand 10 after
4445 ForwardInstructionIterator* current_iterator_; 4446 ForwardInstructionIterator* current_iterator_;
4446 4447
4447 private: 4448 private:
4448 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4449 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4449 }; 4450 };
4450 4451
4451 4452
4452 } // namespace dart 4453 } // namespace dart
4453 4454
4454 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4455 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698