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

Side by Side Diff: src/arm/lithium-arm.h

Issue 6250002: [v8-dev] Implementing Math.floor and Math.sqrt for crankshaft. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 int false_block_id() const { return false_block_id_; } 614 int false_block_id() const { return false_block_id_; }
615 615
616 private: 616 private:
617 int true_block_id_; 617 int true_block_id_;
618 int false_block_id_; 618 int false_block_id_;
619 }; 619 };
620 620
621 621
622 class LUnaryMathOperation: public LUnaryOperation { 622 class LUnaryMathOperation: public LUnaryOperation {
623 public: 623 public:
624 explicit LUnaryMathOperation(LOperand* value) 624 explicit LUnaryMathOperation(LOperand* value, LOperand* temp)
625 : LUnaryOperation(value) { } 625 : LUnaryOperation(value), temp_(temp) { }
626 626
627 DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation, "unary-math-operation") 627 DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation, "unary-math-operation")
628 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) 628 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
629 629
630 virtual void PrintDataTo(StringStream* stream) const; 630 virtual void PrintDataTo(StringStream* stream) const;
631 BuiltinFunctionId op() const { return hydrogen()->op(); } 631 BuiltinFunctionId op() const { return hydrogen()->op(); }
632 LOperand* temp() const { return temp_; }
633
634 private:
635 LOperand* temp_;
632 }; 636 };
633 637
634 638
635 class LCmpJSObjectEq: public LBinaryOperation { 639 class LCmpJSObjectEq: public LBinaryOperation {
636 public: 640 public:
637 LCmpJSObjectEq(LOperand* left, LOperand* right) 641 LCmpJSObjectEq(LOperand* left, LOperand* right)
638 : LBinaryOperation(left, right) {} 642 : LBinaryOperation(left, right) {}
639 643
640 DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEq, "cmp-jsobject-eq") 644 DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEq, "cmp-jsobject-eq")
641 }; 645 };
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 1938 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
1935 }; 1939 };
1936 1940
1937 #undef DECLARE_HYDROGEN_ACCESSOR 1941 #undef DECLARE_HYDROGEN_ACCESSOR
1938 #undef DECLARE_INSTRUCTION 1942 #undef DECLARE_INSTRUCTION
1939 #undef DECLARE_CONCRETE_INSTRUCTION 1943 #undef DECLARE_CONCRETE_INSTRUCTION
1940 1944
1941 } } // namespace v8::internal 1945 } } // namespace v8::internal
1942 1946
1943 #endif // V8_ARM_LITHIUM_ARM_H_ 1947 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« src/arm/assembler-arm.h ('K') | « src/arm/assembler-arm.h ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698