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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 // An optimized implementation of expressions of the form | 617 // An optimized implementation of expressions of the form |
618 // x.apply(y, arguments). We call x the applicand and y the receiver. | 618 // x.apply(y, arguments). We call x the applicand and y the receiver. |
619 // The optimization avoids allocating an arguments object if possible. | 619 // The optimization avoids allocating an arguments object if possible. |
620 void CallApplyLazy(Expression* applicand, | 620 void CallApplyLazy(Expression* applicand, |
621 Expression* receiver, | 621 Expression* receiver, |
622 VariableProxy* arguments, | 622 VariableProxy* arguments, |
623 int position); | 623 int position); |
624 | 624 |
625 void CheckStack(); | 625 void CheckStack(); |
626 | 626 |
627 static InlineFunctionGenerator FindInlineFunctionGenerator( | |
628 Runtime::FunctionId function_id); | |
629 | |
630 bool CheckForInlineRuntimeCall(CallRuntime* node); | 627 bool CheckForInlineRuntimeCall(CallRuntime* node); |
631 | 628 |
632 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 629 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
633 | 630 |
634 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); | 631 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); |
635 | 632 |
636 static Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop); | 633 static Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop); |
637 | 634 |
638 // Declare global variables and functions in the given array of | 635 // Declare global variables and functions in the given array of |
639 // name/value pairs. | 636 // name/value pairs. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 | 795 |
799 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc | 796 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc |
800 | 797 |
801 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 798 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
802 }; | 799 }; |
803 | 800 |
804 | 801 |
805 } } // namespace v8::internal | 802 } } // namespace v8::internal |
806 | 803 |
807 #endif // V8_IA32_CODEGEN_IA32_H_ | 804 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |