OLD | NEW |
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 Loading... |
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 // Simple condition analysis. | 575 // Fast call to math functions. |
| 576 void GenerateMathSin(ZoneList<Expression*>* args); |
| 577 void GenerateMathCos(ZoneList<Expression*>* args); |
| 578 |
| 579 // Simple condition analysis. |
576 enum ConditionAnalysis { | 580 enum ConditionAnalysis { |
577 ALWAYS_TRUE, | 581 ALWAYS_TRUE, |
578 ALWAYS_FALSE, | 582 ALWAYS_FALSE, |
579 DONT_KNOW | 583 DONT_KNOW |
580 }; | 584 }; |
581 ConditionAnalysis AnalyzeCondition(Expression* cond); | 585 ConditionAnalysis AnalyzeCondition(Expression* cond); |
582 | 586 |
583 // Methods used to indicate which source code is generated for. Source | 587 // Methods used to indicate which source code is generated for. Source |
584 // positions are collected by the assembler and emitted with the relocation | 588 // positions are collected by the assembler and emitted with the relocation |
585 // information. | 589 // information. |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 Major MajorKey() { return StringCompare; } | 824 Major MajorKey() { return StringCompare; } |
821 int MinorKey() { return 0; } | 825 int MinorKey() { return 0; } |
822 | 826 |
823 void Generate(MacroAssembler* masm); | 827 void Generate(MacroAssembler* masm); |
824 }; | 828 }; |
825 | 829 |
826 | 830 |
827 } } // namespace v8::internal | 831 } } // namespace v8::internal |
828 | 832 |
829 #endif // V8_X64_CODEGEN_X64_H_ | 833 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |