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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 void CheckStack(); | 625 void CheckStack(); |
626 | 626 |
627 struct InlineRuntimeLUT { | 627 struct InlineRuntimeLUT { |
628 void (CodeGenerator::*method)(ZoneList<Expression*>*); | 628 void (CodeGenerator::*method)(ZoneList<Expression*>*); |
629 const char* name; | 629 const char* name; |
630 int nargs; | 630 int nargs; |
631 }; | 631 }; |
632 | 632 |
633 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); | 633 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); |
634 bool CheckForInlineRuntimeCall(CallRuntime* node); | 634 bool CheckForInlineRuntimeCall(CallRuntime* node); |
635 static bool PatchInlineRuntimeEntry(Handle<String> name, | |
636 const InlineRuntimeLUT& new_entry, | |
637 InlineRuntimeLUT* old_entry); | |
638 | 635 |
639 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 636 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
640 | 637 |
641 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); | 638 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); |
642 | 639 |
643 static Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop); | 640 static Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop); |
644 | 641 |
645 // Declare global variables and functions in the given array of | 642 // Declare global variables and functions in the given array of |
646 // name/value pairs. | 643 // name/value pairs. |
647 void DeclareGlobals(Handle<FixedArray> pairs); | 644 void DeclareGlobals(Handle<FixedArray> pairs); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 | 804 |
808 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc | 805 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc |
809 | 806 |
810 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 807 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
811 }; | 808 }; |
812 | 809 |
813 | 810 |
814 } } // namespace v8::internal | 811 } } // namespace v8::internal |
815 | 812 |
816 #endif // V8_IA32_CODEGEN_IA32_H_ | 813 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |