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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 // from the JavaScript source are loaded in two parts if they are larger | 474 // from the JavaScript source are loaded in two parts if they are larger |
475 // than 16 bits. | 475 // than 16 bits. |
476 static const int kMaxSmiInlinedBits = 16; | 476 static const int kMaxSmiInlinedBits = 16; |
477 bool IsUnsafeSmi(Handle<Object> value); | 477 bool IsUnsafeSmi(Handle<Object> value); |
478 // Load an integer constant x into a register target using | 478 // Load an integer constant x into a register target using |
479 // at most 16 bits of user-controlled data per assembly operation. | 479 // at most 16 bits of user-controlled data per assembly operation. |
480 void LoadUnsafeSmi(Register target, Handle<Object> value); | 480 void LoadUnsafeSmi(Register target, Handle<Object> value); |
481 | 481 |
482 void CallWithArguments(ZoneList<Expression*>* arguments, int position); | 482 void CallWithArguments(ZoneList<Expression*>* arguments, int position); |
483 | 483 |
| 484 // Use an optimized version of Function.prototype.apply that avoid |
| 485 // allocating the arguments object and just copies the arguments |
| 486 // from the stack. |
| 487 void CallApplyLazy(Property* apply, |
| 488 Expression* receiver, |
| 489 VariableProxy* arguments, |
| 490 int position); |
| 491 |
484 void CheckStack(); | 492 void CheckStack(); |
485 | 493 |
486 struct InlineRuntimeLUT { | 494 struct InlineRuntimeLUT { |
487 void (CodeGenerator::*method)(ZoneList<Expression*>*); | 495 void (CodeGenerator::*method)(ZoneList<Expression*>*); |
488 const char* name; | 496 const char* name; |
489 }; | 497 }; |
490 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); | 498 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); |
491 bool CheckForInlineRuntimeCall(CallRuntime* node); | 499 bool CheckForInlineRuntimeCall(CallRuntime* node); |
492 static bool PatchInlineRuntimeEntry(Handle<String> name, | 500 static bool PatchInlineRuntimeEntry(Handle<String> name, |
493 const InlineRuntimeLUT& new_entry, | 501 const InlineRuntimeLUT& new_entry, |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 | FlagBits::encode(flags_) | 664 | FlagBits::encode(flags_) |
657 | SSE3Bits::encode(use_sse3_); | 665 | SSE3Bits::encode(use_sse3_); |
658 } | 666 } |
659 void Generate(MacroAssembler* masm); | 667 void Generate(MacroAssembler* masm); |
660 }; | 668 }; |
661 | 669 |
662 | 670 |
663 } } // namespace v8::internal | 671 } } // namespace v8::internal |
664 | 672 |
665 #endif // V8_X64_CODEGEN_X64_H_ | 673 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |