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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 | 584 |
585 void CheckStack(); | 585 void CheckStack(); |
586 | 586 |
587 struct InlineRuntimeLUT { | 587 struct InlineRuntimeLUT { |
588 void (CodeGenerator::*method)(ZoneList<Expression*>*); | 588 void (CodeGenerator::*method)(ZoneList<Expression*>*); |
589 const char* name; | 589 const char* name; |
590 int nargs; | 590 int nargs; |
591 }; | 591 }; |
592 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); | 592 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); |
593 bool CheckForInlineRuntimeCall(CallRuntime* node); | 593 bool CheckForInlineRuntimeCall(CallRuntime* node); |
594 static bool PatchInlineRuntimeEntry(Handle<String> name, | 594 |
595 const InlineRuntimeLUT& new_entry, | |
596 InlineRuntimeLUT* old_entry); | |
597 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 595 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
598 | 596 |
599 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); | 597 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); |
600 | 598 |
601 static Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop); | 599 static Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop); |
602 | 600 |
603 // Declare global variables and functions in the given array of | 601 // Declare global variables and functions in the given array of |
604 // name/value pairs. | 602 // name/value pairs. |
605 void DeclareGlobals(Handle<FixedArray> pairs); | 603 void DeclareGlobals(Handle<FixedArray> pairs); |
606 | 604 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 | 754 |
757 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc | 755 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc |
758 | 756 |
759 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 757 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
760 }; | 758 }; |
761 | 759 |
762 | 760 |
763 } } // namespace v8::internal | 761 } } // namespace v8::internal |
764 | 762 |
765 #endif // V8_X64_CODEGEN_X64_H_ | 763 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |