| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 Register object_; | 460 Register object_; |
| 461 Register value_; | 461 Register value_; |
| 462 Register address_; | 462 Register address_; |
| 463 RememberedSetAction remembered_set_action_; | 463 RememberedSetAction remembered_set_action_; |
| 464 SaveFPRegsMode save_fp_regs_mode_; | 464 SaveFPRegsMode save_fp_regs_mode_; |
| 465 Label slow_; | 465 Label slow_; |
| 466 RegisterAllocation regs_; | 466 RegisterAllocation regs_; |
| 467 }; | 467 }; |
| 468 | 468 |
| 469 | 469 |
| 470 // Enter C code from generated RegExp code in a way that allows | |
| 471 // the C code to fix the return address in case of a GC. | |
| 472 // Currently only needed on ARM and MIPS. | |
| 473 class RegExpCEntryStub: public PlatformCodeStub { | |
| 474 public: | |
| 475 RegExpCEntryStub() {} | |
| 476 virtual ~RegExpCEntryStub() {} | |
| 477 void Generate(MacroAssembler* masm); | |
| 478 | |
| 479 private: | |
| 480 Major MajorKey() { return RegExpCEntry; } | |
| 481 int MinorKey() { return 0; } | |
| 482 | |
| 483 bool NeedsImmovableCode() { return true; } | |
| 484 }; | |
| 485 | |
| 486 // Trampoline stub to call into native code. To call safely into native code | 470 // Trampoline stub to call into native code. To call safely into native code |
| 487 // in the presence of compacting GC (which can move code objects) we need to | 471 // in the presence of compacting GC (which can move code objects) we need to |
| 488 // keep the code which called into native pinned in the memory. Currently the | 472 // keep the code which called into native pinned in the memory. Currently the |
| 489 // simplest approach is to generate such stub early enough so it can never be | 473 // simplest approach is to generate such stub early enough so it can never be |
| 490 // moved by GC | 474 // moved by GC |
| 491 class DirectCEntryStub: public PlatformCodeStub { | 475 class DirectCEntryStub: public PlatformCodeStub { |
| 492 public: | 476 public: |
| 493 DirectCEntryStub() {} | 477 DirectCEntryStub() {} |
| 494 void Generate(MacroAssembler* masm); | 478 void Generate(MacroAssembler* masm); |
| 495 void GenerateCall(MacroAssembler* masm, Register target); | 479 void GenerateCall(MacroAssembler* masm, Register target); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 | 532 |
| 549 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 533 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 550 | 534 |
| 551 LookupMode mode_; | 535 LookupMode mode_; |
| 552 }; | 536 }; |
| 553 | 537 |
| 554 | 538 |
| 555 } } // namespace v8::internal | 539 } } // namespace v8::internal |
| 556 | 540 |
| 557 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 541 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
| OLD | NEW |