Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: src/ia32/deoptimizer-ia32.cc

Issue 1686183003: Use SharedFunctionInfo rather than the JSFunction in the deoptimizer (first step). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/deoptimizer.cc ('k') | src/mips/deoptimizer-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/mips/deoptimizer-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698