| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 | 122 |
| 123 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 123 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
| 124 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { | 124 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { |
| 125 double double_value = input_->GetDoubleRegister(i); | 125 double double_value = input_->GetDoubleRegister(i); |
| 126 output_frame->SetDoubleRegister(i, double_value); | 126 output_frame->SetDoubleRegister(i, double_value); |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 | 129 |
| 130 | 130 |
| 131 Code* Deoptimizer::NotifyStubFailureBuiltin() { |
| 132 return isolate_->builtins()->builtin(Builtins::kNotifyStubFailureSaveDoubles); |
| 133 } |
| 134 |
| 135 |
| 131 #define __ masm()-> | 136 #define __ masm()-> |
| 132 | 137 |
| 133 void Deoptimizer::EntryGenerator::Generate() { | 138 void Deoptimizer::EntryGenerator::Generate() { |
| 134 GeneratePrologue(); | 139 GeneratePrologue(); |
| 135 | 140 |
| 136 // TODO(all): This code needs to be revisited. We probably only need to save | 141 // TODO(all): This code needs to be revisited. We probably only need to save |
| 137 // caller-saved registers here. Callee-saved registers can be stored directly | 142 // caller-saved registers here. Callee-saved registers can be stored directly |
| 138 // in the input frame. | 143 // in the input frame. |
| 139 | 144 |
| 140 // Save all allocatable floating point registers. | 145 // Save all allocatable floating point registers. |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 | 367 |
| 363 | 368 |
| 364 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { | 369 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { |
| 365 SetFrameSlot(offset, value); | 370 SetFrameSlot(offset, value); |
| 366 } | 371 } |
| 367 | 372 |
| 368 | 373 |
| 369 #undef __ | 374 #undef __ |
| 370 | 375 |
| 371 } } // namespace v8::internal | 376 } } // namespace v8::internal |
| OLD | NEW |