| 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 578 |
| 579 bool CheckForInlineRuntimeCall(CallRuntime* node); | 579 bool CheckForInlineRuntimeCall(CallRuntime* node); |
| 580 | 580 |
| 581 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 581 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
| 582 | 582 |
| 583 // Declare global variables and functions in the given array of | 583 // Declare global variables and functions in the given array of |
| 584 // name/value pairs. | 584 // name/value pairs. |
| 585 void DeclareGlobals(Handle<FixedArray> pairs); | 585 void DeclareGlobals(Handle<FixedArray> pairs); |
| 586 | 586 |
| 587 // Instantiate the function based on the shared function info. | 587 // Instantiate the function based on the shared function info. |
| 588 void InstantiateFunction(Handle<SharedFunctionInfo> function_info); | 588 void InstantiateFunction(Handle<SharedFunctionInfo> function_info, |
| 589 bool pretenure); |
| 589 | 590 |
| 590 // Support for type checks. | 591 // Support for type checks. |
| 591 void GenerateIsSmi(ZoneList<Expression*>* args); | 592 void GenerateIsSmi(ZoneList<Expression*>* args); |
| 592 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args); | 593 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args); |
| 593 void GenerateIsArray(ZoneList<Expression*>* args); | 594 void GenerateIsArray(ZoneList<Expression*>* args); |
| 594 void GenerateIsRegExp(ZoneList<Expression*>* args); | 595 void GenerateIsRegExp(ZoneList<Expression*>* args); |
| 595 void GenerateIsObject(ZoneList<Expression*>* args); | 596 void GenerateIsObject(ZoneList<Expression*>* args); |
| 596 void GenerateIsSpecObject(ZoneList<Expression*>* args); | 597 void GenerateIsSpecObject(ZoneList<Expression*>* args); |
| 597 void GenerateIsFunction(ZoneList<Expression*>* args); | 598 void GenerateIsFunction(ZoneList<Expression*>* args); |
| 598 void GenerateIsUndetectableObject(ZoneList<Expression*>* args); | 599 void GenerateIsUndetectableObject(ZoneList<Expression*>* args); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 // Fast call to math functions. | 662 // Fast call to math functions. |
| 662 void GenerateMathPow(ZoneList<Expression*>* args); | 663 void GenerateMathPow(ZoneList<Expression*>* args); |
| 663 void GenerateMathSin(ZoneList<Expression*>* args); | 664 void GenerateMathSin(ZoneList<Expression*>* args); |
| 664 void GenerateMathCos(ZoneList<Expression*>* args); | 665 void GenerateMathCos(ZoneList<Expression*>* args); |
| 665 void GenerateMathSqrt(ZoneList<Expression*>* args); | 666 void GenerateMathSqrt(ZoneList<Expression*>* args); |
| 666 | 667 |
| 667 void GenerateIsRegExpEquivalent(ZoneList<Expression*>* args); | 668 void GenerateIsRegExpEquivalent(ZoneList<Expression*>* args); |
| 668 | 669 |
| 669 void GenerateHasCachedArrayIndex(ZoneList<Expression*>* args); | 670 void GenerateHasCachedArrayIndex(ZoneList<Expression*>* args); |
| 670 void GenerateGetCachedArrayIndex(ZoneList<Expression*>* args); | 671 void GenerateGetCachedArrayIndex(ZoneList<Expression*>* args); |
| 672 void GenerateFastAsciiArrayJoin(ZoneList<Expression*>* args); |
| 671 | 673 |
| 672 // Simple condition analysis. | 674 // Simple condition analysis. |
| 673 enum ConditionAnalysis { | 675 enum ConditionAnalysis { |
| 674 ALWAYS_TRUE, | 676 ALWAYS_TRUE, |
| 675 ALWAYS_FALSE, | 677 ALWAYS_FALSE, |
| 676 DONT_KNOW | 678 DONT_KNOW |
| 677 }; | 679 }; |
| 678 ConditionAnalysis AnalyzeCondition(Expression* cond); | 680 ConditionAnalysis AnalyzeCondition(Expression* cond); |
| 679 | 681 |
| 680 // Methods used to indicate which source code is generated for. Source | 682 // Methods used to indicate which source code is generated for. Source |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 | 734 |
| 733 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc | 735 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc |
| 734 | 736 |
| 735 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 737 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 736 }; | 738 }; |
| 737 | 739 |
| 738 | 740 |
| 739 } } // namespace v8::internal | 741 } } // namespace v8::internal |
| 740 | 742 |
| 741 #endif // V8_X64_CODEGEN_X64_H_ | 743 #endif // V8_X64_CODEGEN_X64_H_ |
| OLD | NEW |