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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 // Fast support for StringCompare. | 587 // Fast support for StringCompare. |
588 void GenerateStringCompare(ZoneList<Expression*>* args); | 588 void GenerateStringCompare(ZoneList<Expression*>* args); |
589 | 589 |
590 // Support for direct calls from JavaScript to native RegExp code. | 590 // Support for direct calls from JavaScript to native RegExp code. |
591 void GenerateRegExpExec(ZoneList<Expression*>* args); | 591 void GenerateRegExpExec(ZoneList<Expression*>* args); |
592 | 592 |
593 // Fast support for number to string. | 593 // Fast support for number to string. |
594 void GenerateNumberToString(ZoneList<Expression*>* args); | 594 void GenerateNumberToString(ZoneList<Expression*>* args); |
595 | 595 |
596 // Fast support for Math.pow(). | 596 // Fast support for Math.pow(). |
597 void GeneratePow(ZoneList<Expression*>* args); | 597 void GenerateMathPow(ZoneList<Expression*>* args); |
598 | 598 |
599 // Fast call to transcendental functions. | 599 // Fast call to transcendental functions. |
600 void GenerateMathSin(ZoneList<Expression*>* args); | 600 void GenerateMathSin(ZoneList<Expression*>* args); |
601 void GenerateMathCos(ZoneList<Expression*>* args); | 601 void GenerateMathCos(ZoneList<Expression*>* args); |
602 | 602 |
| 603 // Fast case for sqrt |
| 604 void GenerateMathSqrt(ZoneList<Expression*>* args); |
| 605 |
603 // Simple condition analysis. | 606 // Simple condition analysis. |
604 enum ConditionAnalysis { | 607 enum ConditionAnalysis { |
605 ALWAYS_TRUE, | 608 ALWAYS_TRUE, |
606 ALWAYS_FALSE, | 609 ALWAYS_FALSE, |
607 DONT_KNOW | 610 DONT_KNOW |
608 }; | 611 }; |
609 ConditionAnalysis AnalyzeCondition(Expression* cond); | 612 ConditionAnalysis AnalyzeCondition(Expression* cond); |
610 | 613 |
611 // Methods used to indicate which source code is generated for. Source | 614 // Methods used to indicate which source code is generated for. Source |
612 // positions are collected by the assembler and emitted with the relocation | 615 // positions are collected by the assembler and emitted with the relocation |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 void Print() { | 967 void Print() { |
965 PrintF("NumberToStringStub\n"); | 968 PrintF("NumberToStringStub\n"); |
966 } | 969 } |
967 #endif | 970 #endif |
968 }; | 971 }; |
969 | 972 |
970 | 973 |
971 } } // namespace v8::internal | 974 } } // namespace v8::internal |
972 | 975 |
973 #endif // V8_IA32_CODEGEN_IA32_H_ | 976 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |