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

Side by Side Diff: src/deoptimizer.cc

Issue 2159793002: [turbofan] Allow deopt reasons without source positions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix for Ignition. Created 4 years, 5 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/globals.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 2721 matching lines...) Expand 10 before | Expand all | Expand 10 after
2732 if (frame_it->kind() == TranslatedFrame::kInterpretedFunction) { 2732 if (frame_it->kind() == TranslatedFrame::kInterpretedFunction) {
2733 stack_it++; 2733 stack_it++;
2734 } 2734 }
2735 CHECK(stack_it == frame_it->end()); 2735 CHECK(stack_it == frame_it->end());
2736 } 2736 }
2737 2737
2738 2738
2739 Deoptimizer::DeoptInfo Deoptimizer::GetDeoptInfo(Code* code, Address pc) { 2739 Deoptimizer::DeoptInfo Deoptimizer::GetDeoptInfo(Code* code, Address pc) {
2740 SourcePosition last_position = SourcePosition::Unknown(); 2740 SourcePosition last_position = SourcePosition::Unknown();
2741 DeoptimizeReason last_reason = DeoptimizeReason::kNoReason; 2741 DeoptimizeReason last_reason = DeoptimizeReason::kNoReason;
2742 int last_deopt_id = Deoptimizer::DeoptInfo::kNoDeoptId; 2742 int last_deopt_id = kNoDeoptimizationId;
2743 int mask = RelocInfo::ModeMask(RelocInfo::DEOPT_REASON) | 2743 int mask = RelocInfo::ModeMask(RelocInfo::DEOPT_REASON) |
2744 RelocInfo::ModeMask(RelocInfo::DEOPT_ID) | 2744 RelocInfo::ModeMask(RelocInfo::DEOPT_ID) |
2745 RelocInfo::ModeMask(RelocInfo::DEOPT_POSITION); 2745 RelocInfo::ModeMask(RelocInfo::DEOPT_POSITION);
2746 for (RelocIterator it(code, mask); !it.done(); it.next()) { 2746 for (RelocIterator it(code, mask); !it.done(); it.next()) {
2747 RelocInfo* info = it.rinfo(); 2747 RelocInfo* info = it.rinfo();
2748 if (info->pc() >= pc) { 2748 if (info->pc() >= pc) {
2749 return DeoptInfo(last_position, last_reason, last_deopt_id); 2749 return DeoptInfo(last_position, last_reason, last_deopt_id);
2750 } 2750 }
2751 if (info->rmode() == RelocInfo::DEOPT_POSITION) { 2751 if (info->rmode() == RelocInfo::DEOPT_POSITION) {
2752 int raw_position = static_cast<int>(info->data()); 2752 int raw_position = static_cast<int>(info->data());
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
4003 CHECK(value_info->IsMaterializedObject()); 4003 CHECK(value_info->IsMaterializedObject());
4004 4004
4005 value_info->value_ = 4005 value_info->value_ =
4006 Handle<Object>(previously_materialized_objects->get(i), isolate_); 4006 Handle<Object>(previously_materialized_objects->get(i), isolate_);
4007 } 4007 }
4008 } 4008 }
4009 } 4009 }
4010 4010
4011 } // namespace internal 4011 } // namespace internal
4012 } // namespace v8 4012 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698