| 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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 // Currently only needed on ARM. | 581 // Currently only needed on ARM. |
| 582 class RegExpCEntryStub: public CodeStub { | 582 class RegExpCEntryStub: public CodeStub { |
| 583 public: | 583 public: |
| 584 RegExpCEntryStub() {} | 584 RegExpCEntryStub() {} |
| 585 virtual ~RegExpCEntryStub() {} | 585 virtual ~RegExpCEntryStub() {} |
| 586 void Generate(MacroAssembler* masm); | 586 void Generate(MacroAssembler* masm); |
| 587 | 587 |
| 588 private: | 588 private: |
| 589 Major MajorKey() { return RegExpCEntry; } | 589 Major MajorKey() { return RegExpCEntry; } |
| 590 int MinorKey() { return 0; } | 590 int MinorKey() { return 0; } |
| 591 |
| 592 bool NeedsImmovableCode() { return true; } |
| 593 |
| 591 const char* GetName() { return "RegExpCEntryStub"; } | 594 const char* GetName() { return "RegExpCEntryStub"; } |
| 592 }; | 595 }; |
| 593 | 596 |
| 594 | 597 |
| 595 // Trampoline stub to call into native code. To call safely into native code | 598 // Trampoline stub to call into native code. To call safely into native code |
| 596 // in the presence of compacting GC (which can move code objects) we need to | 599 // in the presence of compacting GC (which can move code objects) we need to |
| 597 // keep the code which called into native pinned in the memory. Currently the | 600 // keep the code which called into native pinned in the memory. Currently the |
| 598 // simplest approach is to generate such stub early enough so it can never be | 601 // simplest approach is to generate such stub early enough so it can never be |
| 599 // moved by GC | 602 // moved by GC |
| 600 class DirectCEntryStub: public CodeStub { | 603 class DirectCEntryStub: public CodeStub { |
| 601 public: | 604 public: |
| 602 DirectCEntryStub() {} | 605 DirectCEntryStub() {} |
| 603 void Generate(MacroAssembler* masm); | 606 void Generate(MacroAssembler* masm); |
| 604 void GenerateCall(MacroAssembler* masm, ExternalReference function); | 607 void GenerateCall(MacroAssembler* masm, ExternalReference function); |
| 605 void GenerateCall(MacroAssembler* masm, Register target); | 608 void GenerateCall(MacroAssembler* masm, Register target); |
| 606 | 609 |
| 607 private: | 610 private: |
| 608 Major MajorKey() { return DirectCEntry; } | 611 Major MajorKey() { return DirectCEntry; } |
| 609 int MinorKey() { return 0; } | 612 int MinorKey() { return 0; } |
| 613 |
| 614 bool NeedsImmovableCode() { return true; } |
| 615 |
| 610 const char* GetName() { return "DirectCEntryStub"; } | 616 const char* GetName() { return "DirectCEntryStub"; } |
| 611 }; | 617 }; |
| 612 | 618 |
| 613 | 619 |
| 614 // Generate code to load an element from a pixel array. The receiver is assumed | 620 // Generate code to load an element from a pixel array. The receiver is assumed |
| 615 // to not be a smi and to have elements, the caller must guarantee this | 621 // to not be a smi and to have elements, the caller must guarantee this |
| 616 // precondition. If key is not a smi, then the generated code branches to | 622 // precondition. If key is not a smi, then the generated code branches to |
| 617 // key_not_smi. Callers can specify NULL for key_not_smi to signal that a smi | 623 // key_not_smi. Callers can specify NULL for key_not_smi to signal that a smi |
| 618 // check has already been performed on key so that the smi check is not | 624 // check has already been performed on key so that the smi check is not |
| 619 // generated. If key is not a valid index within the bounds of the pixel array, | 625 // generated. If key is not a valid index within the bounds of the pixel array, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 bool load_elements_from_receiver, | 663 bool load_elements_from_receiver, |
| 658 bool load_elements_map_from_elements, | 664 bool load_elements_map_from_elements, |
| 659 Label* key_not_smi, | 665 Label* key_not_smi, |
| 660 Label* value_not_smi, | 666 Label* value_not_smi, |
| 661 Label* not_pixel_array, | 667 Label* not_pixel_array, |
| 662 Label* out_of_range); | 668 Label* out_of_range); |
| 663 | 669 |
| 664 } } // namespace v8::internal | 670 } } // namespace v8::internal |
| 665 | 671 |
| 666 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 672 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |