Chromium Code Reviews| 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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 562 public: | 562 public: |
| 563 RegExpCEntryStub() {} | 563 RegExpCEntryStub() {} |
| 564 virtual ~RegExpCEntryStub() {} | 564 virtual ~RegExpCEntryStub() {} |
| 565 void Generate(MacroAssembler* masm); | 565 void Generate(MacroAssembler* masm); |
| 566 | 566 |
| 567 private: | 567 private: |
| 568 Major MajorKey() { return RegExpCEntry; } | 568 Major MajorKey() { return RegExpCEntry; } |
| 569 int MinorKey() { return 0; } | 569 int MinorKey() { return 0; } |
| 570 const char* GetName() { return "RegExpCEntryStub"; } | 570 const char* GetName() { return "RegExpCEntryStub"; } |
| 571 }; | 571 }; |
| 572 | 572 |
|
Erik Corry
2011/02/04 09:55:55
Missing blank line.
antonm
2011/02/04 12:59:45
Done.
| |
| 573 // Trampoline stub to call into native code. To call safely into native code | |
| 574 // in the presence of compacting GC (which can move code objects) we need to | |
| 575 // keep the code which called into native pinned in the memory. Currently the | |
| 576 // simplest approach is to generate such stub early enough so it can never be | |
| 577 // moved by GC | |
| 578 class DirectCEntryStub: public CodeStub { | |
| 579 public: | |
| 580 DirectCEntryStub() {} | |
| 581 void Generate(MacroAssembler* masm); | |
| 582 void GenerateCall(MacroAssembler* masm, ApiFunction *function); | |
| 583 | |
| 584 private: | |
| 585 Major MajorKey() { return DirectCEntry; } | |
| 586 int MinorKey() { return 0; } | |
| 587 const char* GetName() { return "DirectCEntryStub"; } | |
| 588 }; | |
| 589 | |
| 573 | 590 |
| 574 } } // namespace v8::internal | 591 } } // namespace v8::internal |
| 575 | 592 |
| 576 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 593 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |