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