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

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

Issue 509006: Remove complicated Math.sin and Math.cos optimizations that do not buy... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 12 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 | « src/math.js ('k') | src/x64/codegen-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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 // Fast support for object equality testing. 531 // Fast support for object equality testing.
532 void GenerateObjectEquals(ZoneList<Expression*>* args); 532 void GenerateObjectEquals(ZoneList<Expression*>* args);
533 533
534 void GenerateLog(ZoneList<Expression*>* args); 534 void GenerateLog(ZoneList<Expression*>* args);
535 535
536 void GenerateGetFramePointer(ZoneList<Expression*>* args); 536 void GenerateGetFramePointer(ZoneList<Expression*>* args);
537 537
538 // Fast support for Math.random(). 538 // Fast support for Math.random().
539 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); 539 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args);
540 540
541 // Fast support for Math.sin and Math.cos.
542 enum MathOp { SIN, COS };
543 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args);
544 inline void GenerateMathSin(ZoneList<Expression*>* args);
545 inline void GenerateMathCos(ZoneList<Expression*>* args);
546
547 // Fast support for StringAdd. 541 // Fast support for StringAdd.
548 void GenerateStringAdd(ZoneList<Expression*>* args); 542 void GenerateStringAdd(ZoneList<Expression*>* args);
549 543
550 // Simple condition analysis. 544 // Simple condition analysis.
551 enum ConditionAnalysis { 545 enum ConditionAnalysis {
552 ALWAYS_TRUE, 546 ALWAYS_TRUE,
553 ALWAYS_FALSE, 547 ALWAYS_FALSE,
554 DONT_KNOW 548 DONT_KNOW
555 }; 549 };
556 ConditionAnalysis AnalyzeCondition(Expression* cond); 550 ConditionAnalysis AnalyzeCondition(Expression* cond);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 bool ascii); 767 bool ascii);
774 768
775 // Should the stub check whether arguments are strings? 769 // Should the stub check whether arguments are strings?
776 bool string_check_; 770 bool string_check_;
777 }; 771 };
778 772
779 773
780 } } // namespace v8::internal 774 } } // namespace v8::internal
781 775
782 #endif // V8_X64_CODEGEN_X64_H_ 776 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/math.js ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698