| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // There is no dynamic alignment padding on A64 in the input frame. | 107 // There is no dynamic alignment padding on A64 in the input frame. |
| 108 return false; | 108 return false; |
| 109 } | 109 } |
| 110 | 110 |
| 111 | 111 |
| 112 void Deoptimizer::SetPlatformCompiledStubRegisters( | 112 void Deoptimizer::SetPlatformCompiledStubRegisters( |
| 113 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { | 113 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { |
| 114 ApiFunction function(descriptor->deoptimization_handler_); | 114 ApiFunction function(descriptor->deoptimization_handler_); |
| 115 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); | 115 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); |
| 116 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); | 116 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); |
| 117 int params = descriptor->register_param_count_; | 117 int params = descriptor->environment_length(); |
| 118 if (descriptor->stack_parameter_count_ != NULL) { | |
| 119 params++; | |
| 120 } | |
| 121 output_frame->SetRegister(x0.code(), params); | 118 output_frame->SetRegister(x0.code(), params); |
| 122 output_frame->SetRegister(x1.code(), handler); | 119 output_frame->SetRegister(x1.code(), handler); |
| 123 } | 120 } |
| 124 | 121 |
| 125 | 122 |
| 126 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 123 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
| 127 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { | 124 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { |
| 128 double double_value = input_->GetDoubleRegister(i); | 125 double double_value = input_->GetDoubleRegister(i); |
| 129 output_frame->SetDoubleRegister(i, double_value); | 126 output_frame->SetDoubleRegister(i, double_value); |
| 130 } | 127 } |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 362 |
| 366 | 363 |
| 367 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { | 364 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { |
| 368 SetFrameSlot(offset, value); | 365 SetFrameSlot(offset, value); |
| 369 } | 366 } |
| 370 | 367 |
| 371 | 368 |
| 372 #undef __ | 369 #undef __ |
| 373 | 370 |
| 374 } } // namespace v8::internal | 371 } } // namespace v8::internal |
| OLD | NEW |