| 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 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/ia32/frames-ia32.h" | 10 #include "src/ia32/frames-ia32.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 < XMMRegister::kMaxNumRegisters; ++i) { | 204 for (int i = 0; i < XMMRegister::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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 } | 427 } |
| 430 | 428 |
| 431 | 429 |
| 432 #undef __ | 430 #undef __ |
| 433 | 431 |
| 434 | 432 |
| 435 } // namespace internal | 433 } // namespace internal |
| 436 } // namespace v8 | 434 } // namespace v8 |
| 437 | 435 |
| 438 #endif // V8_TARGET_ARCH_IA32 | 436 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |