OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |