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

Side by Side Diff: src/objects.cc

Issue 2559743002: Merged: [cpu-profiler] use new source position information for deoptimization in cpu profiler (Closed)
Patch Set: addressed comment Created 4 years 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') | src/profiler/cpu-profiler.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <memory> 9 #include <memory>
10 #include <sstream> 10 #include <sstream>
(...skipping 10569 matching lines...) Expand 10 before | Expand all | Expand 10 after
10580 Handle<FixedArray> result; 10580 Handle<FixedArray> result;
10581 if (number_of_deopt_points == 0) { 10581 if (number_of_deopt_points == 0) {
10582 result = isolate->factory()->empty_fixed_array(); 10582 result = isolate->factory()->empty_fixed_array();
10583 } else { 10583 } else {
10584 result = isolate->factory()->NewFixedArray( 10584 result = isolate->factory()->NewFixedArray(
10585 LengthOfFixedArray(number_of_deopt_points), pretenure); 10585 LengthOfFixedArray(number_of_deopt_points), pretenure);
10586 } 10586 }
10587 return Handle<DeoptimizationOutputData>::cast(result); 10587 return Handle<DeoptimizationOutputData>::cast(result);
10588 } 10588 }
10589 10589
10590 SharedFunctionInfo* DeoptimizationInputData::GetInlinedFunction(int index) {
10591 if (index == -1) {
10592 return SharedFunctionInfo::cast(this->SharedFunctionInfo());
10593 } else {
10594 return SharedFunctionInfo::cast(LiteralArray()->get(index));
10595 }
10596 }
10597
10590 const int LiteralsArray::kFeedbackVectorOffset = 10598 const int LiteralsArray::kFeedbackVectorOffset =
10591 LiteralsArray::OffsetOfElementAt(LiteralsArray::kVectorIndex); 10599 LiteralsArray::OffsetOfElementAt(LiteralsArray::kVectorIndex);
10592 10600
10593 const int LiteralsArray::kOffsetToFirstLiteral = 10601 const int LiteralsArray::kOffsetToFirstLiteral =
10594 LiteralsArray::OffsetOfElementAt(LiteralsArray::kFirstLiteralIndex); 10602 LiteralsArray::OffsetOfElementAt(LiteralsArray::kFirstLiteralIndex);
10595 10603
10596 // static 10604 // static
10597 Handle<LiteralsArray> LiteralsArray::New(Isolate* isolate, 10605 Handle<LiteralsArray> LiteralsArray::New(Isolate* isolate,
10598 Handle<TypeFeedbackVector> vector, 10606 Handle<TypeFeedbackVector> vector,
10599 int number_of_literals, 10607 int number_of_literals,
(...skipping 9825 matching lines...) Expand 10 before | Expand all | Expand 10 after
20425 // depend on this. 20433 // depend on this.
20426 return DICTIONARY_ELEMENTS; 20434 return DICTIONARY_ELEMENTS;
20427 } 20435 }
20428 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20436 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20429 return kind; 20437 return kind;
20430 } 20438 }
20431 } 20439 }
20432 20440
20433 } // namespace internal 20441 } // namespace internal
20434 } // namespace v8 20442 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/profiler/cpu-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698