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

Side by Side Diff: src/objects.cc

Issue 984773003: CpuProfiler: fix for GetDeoptReason code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments addressed Created 5 years, 9 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/objects.h ('k') | test/cctest/test-cpu-profiler.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 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 <iomanip> 5 #include <iomanip>
6 #include <sstream> 6 #include <sstream>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 11251 matching lines...) Expand 10 before | Expand all | Expand 10 after
11262 return *builtins->MarkCodeAsExecutedTwice(); 11262 return *builtins->MarkCodeAsExecutedTwice();
11263 } 11263 }
11264 default: 11264 default:
11265 UNREACHABLE(); 11265 UNREACHABLE();
11266 break; 11266 break;
11267 } 11267 }
11268 return NULL; 11268 return NULL;
11269 } 11269 }
11270 11270
11271 11271
11272 void Code::PrintDeoptLocation(FILE* out, int bailout_id) { 11272 void Code::PrintDeoptLocation(FILE* out, Address pc) {
11273 Deoptimizer::DeoptInfo info = Deoptimizer::GetDeoptInfo(this, bailout_id); 11273 Deoptimizer::DeoptInfo info = Deoptimizer::GetDeoptInfo(this, pc);
11274 class SourcePosition pos = info.position; 11274 class SourcePosition pos = info.position;
11275 if (info.deopt_reason != Deoptimizer::kNoReason || !pos.IsUnknown()) { 11275 if (info.deopt_reason != Deoptimizer::kNoReason || !pos.IsUnknown()) {
11276 if (FLAG_hydrogen_track_positions) { 11276 if (FLAG_hydrogen_track_positions) {
11277 PrintF(out, " ;;; deoptimize at %d_%d: %s\n", 11277 PrintF(out, " ;;; deoptimize at %d_%d: %s\n",
11278 pos.inlining_id(), pos.position(), 11278 pos.inlining_id(), pos.position(),
11279 Deoptimizer::GetDeoptReason(info.deopt_reason)); 11279 Deoptimizer::GetDeoptReason(info.deopt_reason));
11280 } else { 11280 } else {
11281 PrintF(out, " ;;; deoptimize at %d: %s\n", pos.raw(), 11281 PrintF(out, " ;;; deoptimize at %d: %s\n", pos.raw(),
11282 Deoptimizer::GetDeoptReason(info.deopt_reason)); 11282 Deoptimizer::GetDeoptReason(info.deopt_reason));
11283 } 11283 }
(...skipping 5888 matching lines...) Expand 10 before | Expand all | Expand 10 after
17172 CompilationInfo* info) { 17172 CompilationInfo* info) {
17173 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( 17173 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo(
17174 handle(cell->dependent_code(), info->isolate()), 17174 handle(cell->dependent_code(), info->isolate()),
17175 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); 17175 DependentCode::kPropertyCellChangedGroup, info->object_wrapper());
17176 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 17176 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
17177 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 17177 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
17178 cell, info->zone()); 17178 cell, info->zone());
17179 } 17179 }
17180 17180
17181 } } // namespace v8::internal 17181 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-cpu-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698