| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 bool CheckForInlineRuntimeCall(CallRuntime* node); | 442 bool CheckForInlineRuntimeCall(CallRuntime* node); |
| 443 | 443 |
| 444 static Handle<Code> ComputeLazyCompile(int argc); | 444 static Handle<Code> ComputeLazyCompile(int argc); |
| 445 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 445 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
| 446 | 446 |
| 447 // Declare global variables and functions in the given array of | 447 // Declare global variables and functions in the given array of |
| 448 // name/value pairs. | 448 // name/value pairs. |
| 449 void DeclareGlobals(Handle<FixedArray> pairs); | 449 void DeclareGlobals(Handle<FixedArray> pairs); |
| 450 | 450 |
| 451 // Instantiate the function based on the shared function info. | 451 // Instantiate the function based on the shared function info. |
| 452 void InstantiateFunction(Handle<SharedFunctionInfo> function_info); | 452 void InstantiateFunction(Handle<SharedFunctionInfo> function_info, |
| 453 bool pretenure); |
| 453 | 454 |
| 454 // Support for type checks. | 455 // Support for type checks. |
| 455 void GenerateIsSmi(ZoneList<Expression*>* args); | 456 void GenerateIsSmi(ZoneList<Expression*>* args); |
| 456 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args); | 457 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args); |
| 457 void GenerateIsArray(ZoneList<Expression*>* args); | 458 void GenerateIsArray(ZoneList<Expression*>* args); |
| 458 void GenerateIsRegExp(ZoneList<Expression*>* args); | 459 void GenerateIsRegExp(ZoneList<Expression*>* args); |
| 459 void GenerateIsObject(ZoneList<Expression*>* args); | 460 void GenerateIsObject(ZoneList<Expression*>* args); |
| 460 void GenerateIsSpecObject(ZoneList<Expression*>* args); | 461 void GenerateIsSpecObject(ZoneList<Expression*>* args); |
| 461 void GenerateIsFunction(ZoneList<Expression*>* args); | 462 void GenerateIsFunction(ZoneList<Expression*>* args); |
| 462 void GenerateIsUndetectableObject(ZoneList<Expression*>* args); | 463 void GenerateIsUndetectableObject(ZoneList<Expression*>* args); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 // Fast call to math functions. | 522 // Fast call to math functions. |
| 522 void GenerateMathPow(ZoneList<Expression*>* args); | 523 void GenerateMathPow(ZoneList<Expression*>* args); |
| 523 void GenerateMathSin(ZoneList<Expression*>* args); | 524 void GenerateMathSin(ZoneList<Expression*>* args); |
| 524 void GenerateMathCos(ZoneList<Expression*>* args); | 525 void GenerateMathCos(ZoneList<Expression*>* args); |
| 525 void GenerateMathSqrt(ZoneList<Expression*>* args); | 526 void GenerateMathSqrt(ZoneList<Expression*>* args); |
| 526 | 527 |
| 527 void GenerateIsRegExpEquivalent(ZoneList<Expression*>* args); | 528 void GenerateIsRegExpEquivalent(ZoneList<Expression*>* args); |
| 528 | 529 |
| 529 void GenerateHasCachedArrayIndex(ZoneList<Expression*>* args); | 530 void GenerateHasCachedArrayIndex(ZoneList<Expression*>* args); |
| 530 void GenerateGetCachedArrayIndex(ZoneList<Expression*>* args); | 531 void GenerateGetCachedArrayIndex(ZoneList<Expression*>* args); |
| 532 void GenerateFastAsciiArrayJoin(ZoneList<Expression*>* args); |
| 531 | 533 |
| 532 // Simple condition analysis. | 534 // Simple condition analysis. |
| 533 enum ConditionAnalysis { | 535 enum ConditionAnalysis { |
| 534 ALWAYS_TRUE, | 536 ALWAYS_TRUE, |
| 535 ALWAYS_FALSE, | 537 ALWAYS_FALSE, |
| 536 DONT_KNOW | 538 DONT_KNOW |
| 537 }; | 539 }; |
| 538 ConditionAnalysis AnalyzeCondition(Expression* cond); | 540 ConditionAnalysis AnalyzeCondition(Expression* cond); |
| 539 | 541 |
| 540 // Methods used to indicate which source code is generated for. Source | 542 // Methods used to indicate which source code is generated for. Source |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 friend class FullCodeGenerator; | 587 friend class FullCodeGenerator; |
| 586 friend class FullCodeGenSyntaxChecker; | 588 friend class FullCodeGenSyntaxChecker; |
| 587 | 589 |
| 588 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 590 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 589 }; | 591 }; |
| 590 | 592 |
| 591 | 593 |
| 592 } } // namespace v8::internal | 594 } } // namespace v8::internal |
| 593 | 595 |
| 594 #endif // V8_ARM_CODEGEN_ARM_H_ | 596 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |