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

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

Issue 22853009: For trigonometric functions call to C-libraries: they are faster than x87 operations (3% on Box2D). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
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 4642 matching lines...) Expand 10 before | Expand all | Expand 10 after
4653 4653
4654 class MathUnaryInstr : public TemplateDefinition<1> { 4654 class MathUnaryInstr : public TemplateDefinition<1> {
4655 public: 4655 public:
4656 MathUnaryInstr(MethodRecognizer::Kind kind, Value* value, intptr_t deopt_id) 4656 MathUnaryInstr(MethodRecognizer::Kind kind, Value* value, intptr_t deopt_id)
4657 : kind_(kind) { 4657 : kind_(kind) {
4658 SetInputAt(0, value); 4658 SetInputAt(0, value);
4659 deopt_id_ = deopt_id; 4659 deopt_id_ = deopt_id;
4660 } 4660 }
4661 4661
4662 Value* value() const { return inputs_[0]; } 4662 Value* value() const { return inputs_[0]; }
4663
4664 MethodRecognizer::Kind kind() const { return kind_; } 4663 MethodRecognizer::Kind kind() const { return kind_; }
4664 const RuntimeEntry& TargetFunction() const;
4665 4665
4666 virtual bool CanDeoptimize() const { return false; } 4666 virtual bool CanDeoptimize() const { return false; }
4667 4667
4668 virtual Representation representation() const { 4668 virtual Representation representation() const {
4669 return kUnboxedDouble; 4669 return kUnboxedDouble;
4670 } 4670 }
4671 4671
4672 virtual Representation RequiredInputRepresentation(intptr_t idx) const { 4672 virtual Representation RequiredInputRepresentation(intptr_t idx) const {
4673 ASSERT(idx == 0); 4673 ASSERT(idx == 0);
4674 return kUnboxedDouble; 4674 return kUnboxedDouble;
(...skipping 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after
6784 ForwardInstructionIterator* current_iterator_; 6784 ForwardInstructionIterator* current_iterator_;
6785 6785
6786 private: 6786 private:
6787 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6787 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6788 }; 6788 };
6789 6789
6790 6790
6791 } // namespace dart 6791 } // namespace dart
6792 6792
6793 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6793 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698