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

Side by Side Diff: src/compilation-info.h

Issue 2503393002: [cpu-profiler] use new source position information for deoptimization in cpu profiler (Closed)
Patch Set: addressed comment Created 4 years, 1 month 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/compiler/code-generator.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #ifndef V8_COMPILATION_INFO_H_ 5 #ifndef V8_COMPILATION_INFO_H_
6 #define V8_COMPILATION_INFO_H_ 6 #define V8_COMPILATION_INFO_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/compilation-dependencies.h" 10 #include "src/compilation-dependencies.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 InliningPosition position; 286 InliningPosition position;
287 287
288 InlinedFunctionHolder(Handle<SharedFunctionInfo> inlined_shared_info, 288 InlinedFunctionHolder(Handle<SharedFunctionInfo> inlined_shared_info,
289 Handle<Code> inlined_code_object_root, 289 Handle<Code> inlined_code_object_root,
290 SourcePosition pos) 290 SourcePosition pos)
291 : shared_info(inlined_shared_info), 291 : shared_info(inlined_shared_info),
292 inlined_code_object_root(inlined_code_object_root) { 292 inlined_code_object_root(inlined_code_object_root) {
293 position.position = pos; 293 position.position = pos;
294 // initialized when generating the deoptimization literals 294 // initialized when generating the deoptimization literals
295 position.inlined_function_id = -1; 295 position.inlined_function_id = DeoptimizationInputData::kNotInlinedIndex;
296 } 296 }
297 297
298 void RegisterInlinedFunctionId(size_t inlined_function_id) { 298 void RegisterInlinedFunctionId(size_t inlined_function_id) {
299 position.inlined_function_id = static_cast<int>(inlined_function_id); 299 position.inlined_function_id = static_cast<int>(inlined_function_id);
300 } 300 }
301 }; 301 };
302 302
303 typedef std::vector<InlinedFunctionHolder> InlinedFunctionList; 303 typedef std::vector<InlinedFunctionHolder> InlinedFunctionList;
304 InlinedFunctionList& inlined_functions() { return inlined_functions_; } 304 InlinedFunctionList& inlined_functions() { return inlined_functions_; }
305 305
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 Vector<const char> debug_name_; 388 Vector<const char> debug_name_;
389 389
390 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); 390 DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
391 }; 391 };
392 392
393 } // namespace internal 393 } // namespace internal
394 } // namespace v8 394 } // namespace v8
395 395
396 #endif // V8_COMPILATION_INFO_H_ 396 #endif // V8_COMPILATION_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698