| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 213 |
| 214 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { | 214 bool Deoptimizer::HasAlignmentPadding(JSFunction* function) { |
| 215 int parameter_count = | 215 int parameter_count = |
| 216 function->shared()->internal_formal_parameter_count() + 1; | 216 function->shared()->internal_formal_parameter_count() + 1; |
| 217 unsigned input_frame_size = input_->GetFrameSize(); | 217 unsigned input_frame_size = input_->GetFrameSize(); |
| 218 unsigned alignment_state_offset = | 218 unsigned alignment_state_offset = |
| 219 input_frame_size - parameter_count * kPointerSize - | 219 input_frame_size - parameter_count * kPointerSize - |
| 220 StandardFrameConstants::kFixedFrameSize - | 220 StandardFrameConstants::kFixedFrameSize - |
| 221 kPointerSize; | 221 kPointerSize; |
| 222 DCHECK(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == | 222 DCHECK(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == |
| 223 JavaScriptFrameConstants::kLocal0Offset); | 223 JavaScriptFrameConstants::kFeedbackVectorOffset); |
| 224 int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); | 224 int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); |
| 225 return (alignment_state == kAlignmentPaddingPushed); | 225 return (alignment_state == kAlignmentPaddingPushed); |
| 226 } | 226 } |
| 227 | 227 |
| 228 | 228 |
| 229 #define __ masm()-> | 229 #define __ masm()-> |
| 230 | 230 |
| 231 void Deoptimizer::EntryGenerator::Generate() { | 231 void Deoptimizer::EntryGenerator::Generate() { |
| 232 GeneratePrologue(); | 232 GeneratePrologue(); |
| 233 | 233 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 UNREACHABLE(); | 427 UNREACHABLE(); |
| 428 } | 428 } |
| 429 | 429 |
| 430 | 430 |
| 431 #undef __ | 431 #undef __ |
| 432 | 432 |
| 433 | 433 |
| 434 } } // namespace v8::internal | 434 } } // namespace v8::internal |
| 435 | 435 |
| 436 #endif // V8_TARGET_ARCH_IA32 | 436 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |