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

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

Issue 660072: Added fast support for Math.pow. This simply calculates the result using the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 565
566 // Fast support for StringCompare. 566 // Fast support for StringCompare.
567 void GenerateStringCompare(ZoneList<Expression*>* args); 567 void GenerateStringCompare(ZoneList<Expression*>* args);
568 568
569 // Support for direct calls from JavaScript to native RegExp code. 569 // Support for direct calls from JavaScript to native RegExp code.
570 void GenerateRegExpExec(ZoneList<Expression*>* args); 570 void GenerateRegExpExec(ZoneList<Expression*>* args);
571 571
572 // Fast support for number to string. 572 // Fast support for number to string.
573 void GenerateNumberToString(ZoneList<Expression*>* args); 573 void GenerateNumberToString(ZoneList<Expression*>* args);
574 574
575 // Fast support for Math.pow().
576 void GeneratePow(ZoneList<Expression*>* args);
577
575 // Fast call to math functions. 578 // Fast call to math functions.
576 void GenerateMathSin(ZoneList<Expression*>* args); 579 void GenerateMathSin(ZoneList<Expression*>* args);
577 void GenerateMathCos(ZoneList<Expression*>* args); 580 void GenerateMathCos(ZoneList<Expression*>* args);
578 581
579 // Simple condition analysis. 582 // Simple condition analysis.
580 enum ConditionAnalysis { 583 enum ConditionAnalysis {
581 ALWAYS_TRUE, 584 ALWAYS_TRUE,
582 ALWAYS_FALSE, 585 ALWAYS_FALSE,
583 DONT_KNOW 586 DONT_KNOW
584 }; 587 };
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 Major MajorKey() { return StringCompare; } 827 Major MajorKey() { return StringCompare; }
825 int MinorKey() { return 0; } 828 int MinorKey() { return 0; }
826 829
827 void Generate(MacroAssembler* masm); 830 void Generate(MacroAssembler* masm);
828 }; 831 };
829 832
830 833
831 } } // namespace v8::internal 834 } } // namespace v8::internal
832 835
833 #endif // V8_X64_CODEGEN_X64_H_ 836 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« src/ia32/codegen-ia32.cc ('K') | « src/runtime.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698