| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 | 
| 6 | 6 | 
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" | 
| 8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" | 
| 9 #include "src/full-codegen/full-codegen.h" | 9 #include "src/full-codegen/full-codegen.h" | 
| 10 #include "src/register-configuration.h" | 10 #include "src/register-configuration.h" | 
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 200 } | 200 } | 
| 201 | 201 | 
| 202 | 202 | 
| 203 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 203 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { | 
| 204   for (int i = 0; i < X87Register::kMaxNumRegisters; ++i) { | 204   for (int i = 0; i < X87Register::kMaxNumRegisters; ++i) { | 
| 205     double double_value = input_->GetDoubleRegister(i); | 205     double double_value = input_->GetDoubleRegister(i); | 
| 206     output_frame->SetDoubleRegister(i, double_value); | 206     output_frame->SetDoubleRegister(i, double_value); | 
| 207   } | 207   } | 
| 208 } | 208 } | 
| 209 | 209 | 
| 210 | 210 bool Deoptimizer::HasAlignmentPadding(SharedFunctionInfo* shared) { | 
| 211 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { | 211   int parameter_count = shared->internal_formal_parameter_count() + 1; | 
| 212   int parameter_count = |  | 
| 213       function->shared()->internal_formal_parameter_count() + 1; |  | 
| 214   unsigned input_frame_size = input_->GetFrameSize(); | 212   unsigned input_frame_size = input_->GetFrameSize(); | 
| 215   unsigned alignment_state_offset = | 213   unsigned alignment_state_offset = | 
| 216       input_frame_size - parameter_count * kPointerSize - | 214       input_frame_size - parameter_count * kPointerSize - | 
| 217       StandardFrameConstants::kFixedFrameSize - | 215       StandardFrameConstants::kFixedFrameSize - | 
| 218       kPointerSize; | 216       kPointerSize; | 
| 219   DCHECK(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == | 217   DCHECK(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == | 
| 220       JavaScriptFrameConstants::kLocal0Offset); | 218       JavaScriptFrameConstants::kLocal0Offset); | 
| 221   int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); | 219   int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); | 
| 222   return (alignment_state == kAlignmentPaddingPushed); | 220   return (alignment_state == kAlignmentPaddingPushed); | 
| 223 } | 221 } | 
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 466 } | 464 } | 
| 467 | 465 | 
| 468 | 466 | 
| 469 #undef __ | 467 #undef __ | 
| 470 | 468 | 
| 471 | 469 | 
| 472 }  // namespace internal | 470 }  // namespace internal | 
| 473 }  // namespace v8 | 471 }  // namespace v8 | 
| 474 | 472 | 
| 475 #endif  // V8_TARGET_ARCH_X87 | 473 #endif  // V8_TARGET_ARCH_X87 | 
| OLD | NEW | 
|---|