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

Side by Side Diff: src/objects.cc

Issue 2503393002: [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 10559 matching lines...) Expand 10 before | Expand all | Expand 10 after
10570 Handle<FixedArray> result; 10570 Handle<FixedArray> result;
10571 if (number_of_deopt_points == 0) { 10571 if (number_of_deopt_points == 0) {
10572 result = isolate->factory()->empty_fixed_array(); 10572 result = isolate->factory()->empty_fixed_array();
10573 } else { 10573 } else {
10574 result = isolate->factory()->NewFixedArray( 10574 result = isolate->factory()->NewFixedArray(
10575 LengthOfFixedArray(number_of_deopt_points), pretenure); 10575 LengthOfFixedArray(number_of_deopt_points), pretenure);
10576 } 10576 }
10577 return Handle<DeoptimizationOutputData>::cast(result); 10577 return Handle<DeoptimizationOutputData>::cast(result);
10578 } 10578 }
10579 10579
10580 SharedFunctionInfo* DeoptimizationInputData::GetInlinedFunction(int index) {
10581 if (index == -1) {
10582 return SharedFunctionInfo::cast(SharedFunctionInfo());
10583 } else {
10584 return SharedFunctionInfo::cast(LiteralArray()->get(index));
10585 }
10586 }
10587
10580 const int LiteralsArray::kFeedbackVectorOffset = 10588 const int LiteralsArray::kFeedbackVectorOffset =
10581 LiteralsArray::OffsetOfElementAt(LiteralsArray::kVectorIndex); 10589 LiteralsArray::OffsetOfElementAt(LiteralsArray::kVectorIndex);
10582 10590
10583 const int LiteralsArray::kOffsetToFirstLiteral = 10591 const int LiteralsArray::kOffsetToFirstLiteral =
10584 LiteralsArray::OffsetOfElementAt(LiteralsArray::kFirstLiteralIndex); 10592 LiteralsArray::OffsetOfElementAt(LiteralsArray::kFirstLiteralIndex);
10585 10593
10586 // static 10594 // static
10587 Handle<LiteralsArray> LiteralsArray::New(Isolate* isolate, 10595 Handle<LiteralsArray> LiteralsArray::New(Isolate* isolate,
10588 Handle<TypeFeedbackVector> vector, 10596 Handle<TypeFeedbackVector> vector,
10589 int number_of_literals, 10597 int number_of_literals,
(...skipping 9829 matching lines...) Expand 10 before | Expand all | Expand 10 after
20419 // depend on this. 20427 // depend on this.
20420 return DICTIONARY_ELEMENTS; 20428 return DICTIONARY_ELEMENTS;
20421 } 20429 }
20422 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20430 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20423 return kind; 20431 return kind;
20424 } 20432 }
20425 } 20433 }
20426 20434
20427 } // namespace internal 20435 } // namespace internal
20428 } // namespace v8 20436 } // 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