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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 | 792 |
793 #define __ masm()-> | 793 #define __ masm()-> |
794 | 794 |
795 // This code tries to be close to ia32 code so that any changes can be | 795 // This code tries to be close to ia32 code so that any changes can be |
796 // easily ported. | 796 // easily ported. |
797 void Deoptimizer::EntryGenerator::Generate() { | 797 void Deoptimizer::EntryGenerator::Generate() { |
798 GeneratePrologue(); | 798 GeneratePrologue(); |
799 | 799 |
800 Isolate* isolate = masm()->isolate(); | 800 Isolate* isolate = masm()->isolate(); |
801 | 801 |
802 CpuFeatures::Scope scope(VFP3); | 802 CpuFeatures::Scope scope(VFP2); |
803 // Save all general purpose registers before messing with them. | 803 // Save all general purpose registers before messing with them. |
804 const int kNumberOfRegisters = Register::kNumRegisters; | 804 const int kNumberOfRegisters = Register::kNumRegisters; |
805 | 805 |
806 // Everything but pc, lr and ip which will be saved but not restored. | 806 // Everything but pc, lr and ip which will be saved but not restored. |
807 RegList restored_regs = kJSCallerSaved | kCalleeSaved | ip.bit(); | 807 RegList restored_regs = kJSCallerSaved | kCalleeSaved | ip.bit(); |
808 | 808 |
809 const int kDoubleRegsSize = | 809 const int kDoubleRegsSize = |
810 kDoubleSize * DwVfpRegister::kNumAllocatableRegisters; | 810 kDoubleSize * DwVfpRegister::kNumAllocatableRegisters; |
811 | 811 |
812 // Save all VFP registers before messing with them. | 812 // Save all VFP registers before messing with them. |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 __ push(ip); | 1001 __ push(ip); |
1002 __ b(&done); | 1002 __ b(&done); |
1003 ASSERT(masm()->pc_offset() - start == table_entry_size_); | 1003 ASSERT(masm()->pc_offset() - start == table_entry_size_); |
1004 } | 1004 } |
1005 __ bind(&done); | 1005 __ bind(&done); |
1006 } | 1006 } |
1007 | 1007 |
1008 #undef __ | 1008 #undef __ |
1009 | 1009 |
1010 } } // namespace v8::internal | 1010 } } // namespace v8::internal |
OLD | NEW |