| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 578 |
| 579 // Trampoline stub to call into native code. To call safely into native code | 579 // Trampoline stub to call into native code. To call safely into native code |
| 580 // in the presence of compacting GC (which can move code objects) we need to | 580 // in the presence of compacting GC (which can move code objects) we need to |
| 581 // keep the code which called into native pinned in the memory. Currently the | 581 // keep the code which called into native pinned in the memory. Currently the |
| 582 // simplest approach is to generate such stub early enough so it can never be | 582 // simplest approach is to generate such stub early enough so it can never be |
| 583 // moved by GC | 583 // moved by GC |
| 584 class DirectCEntryStub: public PlatformCodeStub { | 584 class DirectCEntryStub: public PlatformCodeStub { |
| 585 public: | 585 public: |
| 586 DirectCEntryStub() {} | 586 DirectCEntryStub() {} |
| 587 void Generate(MacroAssembler* masm); | 587 void Generate(MacroAssembler* masm); |
| 588 void GenerateCall(MacroAssembler* masm, ExternalReference function); | |
| 589 void GenerateCall(MacroAssembler* masm, Register target); | 588 void GenerateCall(MacroAssembler* masm, Register target); |
| 590 | 589 |
| 591 private: | 590 private: |
| 592 Major MajorKey() { return DirectCEntry; } | 591 Major MajorKey() { return DirectCEntry; } |
| 593 int MinorKey() { return 0; } | 592 int MinorKey() { return 0; } |
| 594 | 593 |
| 595 bool NeedsImmovableCode() { return true; } | 594 bool NeedsImmovableCode() { return true; } |
| 596 }; | 595 }; |
| 597 | 596 |
| 598 | 597 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 | 641 |
| 643 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 642 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 644 | 643 |
| 645 LookupMode mode_; | 644 LookupMode mode_; |
| 646 }; | 645 }; |
| 647 | 646 |
| 648 | 647 |
| 649 } } // namespace v8::internal | 648 } } // namespace v8::internal |
| 650 | 649 |
| 651 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 650 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |