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

Side by Side Diff: src/compiler/frame-states.cc

Issue 1156403002: [turbofan] Record SharedFunctionInfo of inlined functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/compiler/frame-states.h ('k') | src/compiler/instruction.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/base/functional.h" 5 #include "src/base/functional.h"
6 #include "src/compiler/frame-states.h" 6 #include "src/compiler/frame-states.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 40
41 size_t hash_value(FrameStateCallInfo const& info) { 41 size_t hash_value(FrameStateCallInfo const& info) {
42 return base::hash_combine(info.type(), info.bailout_id(), 42 return base::hash_combine(info.type(), info.bailout_id(),
43 info.state_combine()); 43 info.state_combine());
44 } 44 }
45 45
46 46
47 std::ostream& operator<<(std::ostream& os, FrameStateCallInfo const& info) { 47 std::ostream& operator<<(std::ostream& os, FrameStateCallInfo const& info) {
48 return os << info.type() << ", " << info.bailout_id() << ", " 48 os << info.type() << ", " << info.bailout_id() << ", "
49 << info.state_combine(); 49 << info.state_combine();
50 Handle<SharedFunctionInfo> shared_info;
51 if (info.shared_info().ToHandle(&shared_info)) {
52 os << ", " << Brief(*shared_info);
53 }
54 return os;
50 } 55 }
51 56
52 } // namespace compiler 57 } // namespace compiler
53 } // namespace internal 58 } // namespace internal
54 } // namespace v8 59 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/frame-states.h ('k') | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698