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

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

Issue 11418149: Faster implementation of Math.exp() (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Win build Created 8 years 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 | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 V(LoadElements) \ 124 V(LoadElements) \
125 V(LoadExternalArrayPointer) \ 125 V(LoadExternalArrayPointer) \
126 V(LoadFunctionPrototype) \ 126 V(LoadFunctionPrototype) \
127 V(LoadGlobalCell) \ 127 V(LoadGlobalCell) \
128 V(LoadGlobalGeneric) \ 128 V(LoadGlobalGeneric) \
129 V(LoadKeyed) \ 129 V(LoadKeyed) \
130 V(LoadKeyedGeneric) \ 130 V(LoadKeyedGeneric) \
131 V(LoadNamedField) \ 131 V(LoadNamedField) \
132 V(LoadNamedFieldPolymorphic) \ 132 V(LoadNamedFieldPolymorphic) \
133 V(LoadNamedGeneric) \ 133 V(LoadNamedGeneric) \
134 V(MathExp) \
134 V(MathFloorOfDiv) \ 135 V(MathFloorOfDiv) \
135 V(MathMinMax) \ 136 V(MathMinMax) \
136 V(ModI) \ 137 V(ModI) \
137 V(MulI) \ 138 V(MulI) \
138 V(NumberTagD) \ 139 V(NumberTagD) \
139 V(NumberTagI) \ 140 V(NumberTagI) \
140 V(NumberTagU) \ 141 V(NumberTagU) \
141 V(NumberUntagD) \ 142 V(NumberUntagD) \
142 V(ObjectLiteral) \ 143 V(ObjectLiteral) \
143 V(OsrEntry) \ 144 V(OsrEntry) \
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 LOperand* value() { return inputs_[0]; } 637 LOperand* value() { return inputs_[0]; }
637 638
638 DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation, "unary-math-operation") 639 DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation, "unary-math-operation")
639 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation) 640 DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
640 641
641 virtual void PrintDataTo(StringStream* stream); 642 virtual void PrintDataTo(StringStream* stream);
642 BuiltinFunctionId op() const { return hydrogen()->op(); } 643 BuiltinFunctionId op() const { return hydrogen()->op(); }
643 }; 644 };
644 645
645 646
647 class LMathExp: public LTemplateInstruction<1, 1, 2> {
648 public:
649 LMathExp(LOperand* value, LOperand* temp1, LOperand* temp2) {
650 inputs_[0] = value;
651 temps_[0] = temp1;
652 temps_[1] = temp2;
653 ExternalReference::InitializeMathExpData();
654 }
655
656 LOperand* value() { return inputs_[0]; }
657 LOperand* temp1() { return temps_[0]; }
658 LOperand* temp2() { return temps_[1]; }
659
660 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp")
661
662 virtual void PrintDataTo(StringStream* stream);
663 };
664
665
646 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> { 666 class LCmpObjectEqAndBranch: public LControlInstruction<2, 0> {
647 public: 667 public:
648 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) { 668 LCmpObjectEqAndBranch(LOperand* left, LOperand* right) {
649 inputs_[0] = left; 669 inputs_[0] = left;
650 inputs_[1] = right; 670 inputs_[1] = right;
651 } 671 }
652 672
653 LOperand* left() { return inputs_[0]; } 673 LOperand* left() { return inputs_[0]; }
654 LOperand* right() { return inputs_[1]; } 674 LOperand* right() { return inputs_[1]; }
655 675
(...skipping 1830 matching lines...) Expand 10 before | Expand all | Expand 10 after
2486 2506
2487 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2507 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2488 }; 2508 };
2489 2509
2490 #undef DECLARE_HYDROGEN_ACCESSOR 2510 #undef DECLARE_HYDROGEN_ACCESSOR
2491 #undef DECLARE_CONCRETE_INSTRUCTION 2511 #undef DECLARE_CONCRETE_INSTRUCTION
2492 2512
2493 } } // namespace v8::int 2513 } } // namespace v8::int
2494 2514
2495 #endif // V8_X64_LITHIUM_X64_H_ 2515 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698