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

Side by Side Diff: src/deoptimizer.cc

Issue 1907443002: Introduce approximate mode for StandardFrame::Summarize. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed review feedback Created 4 years, 8 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 | « no previous file | src/frames.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/deoptimizer.h" 5 #include "src/deoptimizer.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/ast/prettyprinter.h" 8 #include "src/ast/prettyprinter.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/disasm.h" 10 #include "src/disasm.h"
(...skipping 3365 matching lines...) Expand 10 before | Expand all | Expand 10 after
3376 } 3376 }
3377 3377
3378 3378
3379 TranslatedState::TranslatedState(JavaScriptFrame* frame) 3379 TranslatedState::TranslatedState(JavaScriptFrame* frame)
3380 : isolate_(nullptr), 3380 : isolate_(nullptr),
3381 stack_frame_pointer_(nullptr), 3381 stack_frame_pointer_(nullptr),
3382 has_adapted_arguments_(false) { 3382 has_adapted_arguments_(false) {
3383 int deopt_index = Safepoint::kNoDeoptimizationIndex; 3383 int deopt_index = Safepoint::kNoDeoptimizationIndex;
3384 DeoptimizationInputData* data = 3384 DeoptimizationInputData* data =
3385 static_cast<OptimizedFrame*>(frame)->GetDeoptimizationData(&deopt_index); 3385 static_cast<OptimizedFrame*>(frame)->GetDeoptimizationData(&deopt_index);
3386 DCHECK(data != nullptr && deopt_index != Safepoint::kNoDeoptimizationIndex);
3386 TranslationIterator it(data->TranslationByteArray(), 3387 TranslationIterator it(data->TranslationByteArray(),
3387 data->TranslationIndex(deopt_index)->value()); 3388 data->TranslationIndex(deopt_index)->value());
3388 Init(frame->fp(), &it, data->LiteralArray(), nullptr /* registers */, 3389 Init(frame->fp(), &it, data->LiteralArray(), nullptr /* registers */,
3389 nullptr /* trace file */); 3390 nullptr /* trace file */);
3390 } 3391 }
3391 3392
3392 3393
3393 TranslatedState::TranslatedState() 3394 TranslatedState::TranslatedState()
3394 : isolate_(nullptr), 3395 : isolate_(nullptr),
3395 stack_frame_pointer_(nullptr), 3396 stack_frame_pointer_(nullptr),
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
3810 CHECK(value_info->IsMaterializedObject()); 3811 CHECK(value_info->IsMaterializedObject());
3811 3812
3812 value_info->value_ = 3813 value_info->value_ =
3813 Handle<Object>(previously_materialized_objects->get(i), isolate_); 3814 Handle<Object>(previously_materialized_objects->get(i), isolate_);
3814 } 3815 }
3815 } 3816 }
3816 } 3817 }
3817 3818
3818 } // namespace internal 3819 } // namespace internal
3819 } // namespace v8 3820 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698