OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 | 504 |
505 struct InlineRuntimeLUT { | 505 struct InlineRuntimeLUT { |
506 void (CodeGenerator::*method)(ZoneList<Expression*>*); | 506 void (CodeGenerator::*method)(ZoneList<Expression*>*); |
507 const char* name; | 507 const char* name; |
508 }; | 508 }; |
509 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); | 509 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); |
510 bool CheckForInlineRuntimeCall(CallRuntime* node); | 510 bool CheckForInlineRuntimeCall(CallRuntime* node); |
511 static bool PatchInlineRuntimeEntry(Handle<String> name, | 511 static bool PatchInlineRuntimeEntry(Handle<String> name, |
512 const InlineRuntimeLUT& new_entry, | 512 const InlineRuntimeLUT& new_entry, |
513 InlineRuntimeLUT* old_entry); | 513 InlineRuntimeLUT* old_entry); |
| 514 static Handle<Code> ComputeLazyCompile(int argc); |
514 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); | 515 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); |
515 void ProcessDeclarations(ZoneList<Declaration*>* declarations); | 516 void ProcessDeclarations(ZoneList<Declaration*>* declarations); |
516 | 517 |
517 Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); | 518 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); |
518 | 519 |
519 // Declare global variables and functions in the given array of | 520 // Declare global variables and functions in the given array of |
520 // name/value pairs. | 521 // name/value pairs. |
521 void DeclareGlobals(Handle<FixedArray> pairs); | 522 void DeclareGlobals(Handle<FixedArray> pairs); |
522 | 523 |
523 // Instantiate the function boilerplate. | 524 // Instantiate the function boilerplate. |
524 void InstantiateBoilerplate(Handle<JSFunction> boilerplate); | 525 void InstantiateBoilerplate(Handle<JSFunction> boilerplate); |
525 | 526 |
526 // Support for type checks. | 527 // Support for type checks. |
527 void GenerateIsSmi(ZoneList<Expression*>* args); | 528 void GenerateIsSmi(ZoneList<Expression*>* args); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 // in a spilled state. | 611 // in a spilled state. |
611 bool in_spilled_code_; | 612 bool in_spilled_code_; |
612 | 613 |
613 static InlineRuntimeLUT kInlineRuntimeLUT[]; | 614 static InlineRuntimeLUT kInlineRuntimeLUT[]; |
614 | 615 |
615 friend class VirtualFrame; | 616 friend class VirtualFrame; |
616 friend class JumpTarget; | 617 friend class JumpTarget; |
617 friend class Reference; | 618 friend class Reference; |
618 friend class Result; | 619 friend class Result; |
619 friend class FastCodeGenerator; | 620 friend class FastCodeGenerator; |
| 621 friend class CodeGenSelector; |
620 | 622 |
621 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc | 623 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc |
622 | 624 |
623 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 625 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
624 }; | 626 }; |
625 | 627 |
626 | 628 |
627 // ------------------------------------------------------------------------- | 629 // ------------------------------------------------------------------------- |
628 // Code stubs | 630 // Code stubs |
629 // | 631 // |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 | FlagBits::encode(flags_) | 686 | FlagBits::encode(flags_) |
685 | SSE3Bits::encode(use_sse3_); | 687 | SSE3Bits::encode(use_sse3_); |
686 } | 688 } |
687 void Generate(MacroAssembler* masm); | 689 void Generate(MacroAssembler* masm); |
688 }; | 690 }; |
689 | 691 |
690 | 692 |
691 } } // namespace v8::internal | 693 } } // namespace v8::internal |
692 | 694 |
693 #endif // V8_X64_CODEGEN_X64_H_ | 695 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |