| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2011 the V8 project authors. All rights reserved. | 2 // Copyright 2011 the V8 project authors. All rights reserved. |
| 3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
| 5 // met: | 5 // met: |
| 6 // | 6 // |
| 7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
| 8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
| 9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
| 10 // copyright notice, this list of conditions and the following | 10 // copyright notice, this list of conditions and the following |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); | 97 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 | 100 |
| 101 | 101 |
| 102 void Deoptimizer::SetPlatformCompiledStubRegisters( | 102 void Deoptimizer::SetPlatformCompiledStubRegisters( |
| 103 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { | 103 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { |
| 104 ApiFunction function(descriptor->deoptimization_handler_); | 104 ApiFunction function(descriptor->deoptimization_handler_); |
| 105 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); | 105 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); |
| 106 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); | 106 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); |
| 107 int params = descriptor->register_param_count_; | 107 int params = descriptor->environment_length(); |
| 108 if (descriptor->stack_parameter_count_ != NULL) { | |
| 109 params++; | |
| 110 } | |
| 111 output_frame->SetRegister(s0.code(), params); | 108 output_frame->SetRegister(s0.code(), params); |
| 112 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize); | 109 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize); |
| 113 output_frame->SetRegister(s2.code(), handler); | 110 output_frame->SetRegister(s2.code(), handler); |
| 114 } | 111 } |
| 115 | 112 |
| 116 | 113 |
| 117 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 114 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
| 118 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { | 115 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { |
| 119 double double_value = input_->GetDoubleRegister(i); | 116 double double_value = input_->GetDoubleRegister(i); |
| 120 output_frame->SetDoubleRegister(i, double_value); | 117 output_frame->SetDoubleRegister(i, double_value); |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 371 |
| 375 } } // namespace v8::internal | 372 } } // namespace v8::internal |
| OLD | NEW |