| 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); |
| 588 void GenerateCall(MacroAssembler* masm, Register target); | 589 void GenerateCall(MacroAssembler* masm, Register target); |
| 589 | 590 |
| 590 private: | 591 private: |
| 591 Major MajorKey() { return DirectCEntry; } | 592 Major MajorKey() { return DirectCEntry; } |
| 592 int MinorKey() { return 0; } | 593 int MinorKey() { return 0; } |
| 593 | 594 |
| 594 bool NeedsImmovableCode() { return true; } | 595 bool NeedsImmovableCode() { return true; } |
| 595 }; | 596 }; |
| 596 | 597 |
| 597 | 598 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 | 642 |
| 642 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 643 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 643 | 644 |
| 644 LookupMode mode_; | 645 LookupMode mode_; |
| 645 }; | 646 }; |
| 646 | 647 |
| 647 | 648 |
| 648 } } // namespace v8::internal | 649 } } // namespace v8::internal |
| 649 | 650 |
| 650 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 651 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |