OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 void Deoptimizer::EntryGenerator::Generate() { | 143 void Deoptimizer::EntryGenerator::Generate() { |
144 GeneratePrologue(); | 144 GeneratePrologue(); |
145 | 145 |
146 // TODO(all): This code needs to be revisited. We probably only need to save | 146 // TODO(all): This code needs to be revisited. We probably only need to save |
147 // caller-saved registers here. Callee-saved registers can be stored directly | 147 // caller-saved registers here. Callee-saved registers can be stored directly |
148 // in the input frame. | 148 // in the input frame. |
149 | 149 |
150 // Save all allocatable floating point registers. | 150 // Save all allocatable floating point registers. |
151 CPURegList saved_fp_registers(CPURegister::kFPRegister, kDRegSize, | 151 CPURegList saved_fp_registers(CPURegister::kFPRegister, kDRegSize, |
152 0, FPRegister::NumAllocatableRegisters() - 1); | 152 FPRegister::kAllocatableFPRegisters); |
153 __ PushCPURegList(saved_fp_registers); | 153 __ PushCPURegList(saved_fp_registers); |
154 | 154 |
155 // We save all the registers expcept jssp, sp and lr. | 155 // We save all the registers expcept jssp, sp and lr. |
156 CPURegList saved_registers(CPURegister::kRegister, kXRegSize, 0, 27); | 156 CPURegList saved_registers(CPURegister::kRegister, kXRegSize, 0, 27); |
157 saved_registers.Combine(fp); | 157 saved_registers.Combine(fp); |
158 __ PushCPURegList(saved_registers); | 158 __ PushCPURegList(saved_registers); |
159 | 159 |
160 const int kSavedRegistersAreaSize = | 160 const int kSavedRegistersAreaSize = |
161 (saved_registers.Count() * kXRegSizeInBytes) + | 161 (saved_registers.Count() * kXRegSizeInBytes) + |
162 (saved_fp_registers.Count() * kDRegSizeInBytes); | 162 (saved_fp_registers.Count() * kDRegSizeInBytes); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 372 |
373 | 373 |
374 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { | 374 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { |
375 SetFrameSlot(offset, value); | 375 SetFrameSlot(offset, value); |
376 } | 376 } |
377 | 377 |
378 | 378 |
379 #undef __ | 379 #undef __ |
380 | 380 |
381 } } // namespace v8::internal | 381 } } // namespace v8::internal |
OLD | NEW |