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

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

Issue 1435873002: [turbofan] Initial support for constructor call inlining. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 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 | « src/compiler/frame-states.h ('k') | src/compiler/js-generic-lowering.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 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 #include "src/handles-inl.h" 7 #include "src/handles-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 48
49 std::ostream& operator<<(std::ostream& os, FrameStateType type) { 49 std::ostream& operator<<(std::ostream& os, FrameStateType type) {
50 switch (type) { 50 switch (type) {
51 case FrameStateType::kJavaScriptFunction: 51 case FrameStateType::kJavaScriptFunction:
52 os << "JS_FRAME"; 52 os << "JS_FRAME";
53 break; 53 break;
54 case FrameStateType::kArgumentsAdaptor: 54 case FrameStateType::kArgumentsAdaptor:
55 os << "ARGUMENTS_ADAPTOR"; 55 os << "ARGUMENTS_ADAPTOR";
56 break; 56 break;
57 case FrameStateType::kConstructStub:
58 os << "CONSTRUCT_STUB";
59 break;
57 } 60 }
58 return os; 61 return os;
59 } 62 }
60 63
61 64
62 std::ostream& operator<<(std::ostream& os, FrameStateInfo const& info) { 65 std::ostream& operator<<(std::ostream& os, FrameStateInfo const& info) {
63 os << info.type() << ", " << info.bailout_id() << ", " 66 os << info.type() << ", " << info.bailout_id() << ", "
64 << info.state_combine(); 67 << info.state_combine();
65 Handle<SharedFunctionInfo> shared_info; 68 Handle<SharedFunctionInfo> shared_info;
66 if (info.shared_info().ToHandle(&shared_info)) { 69 if (info.shared_info().ToHandle(&shared_info)) {
67 os << ", " << Brief(*shared_info); 70 os << ", " << Brief(*shared_info);
68 } 71 }
69 return os; 72 return os;
70 } 73 }
71 74
72 } // namespace compiler 75 } // namespace compiler
73 } // namespace internal 76 } // namespace internal
74 } // namespace v8 77 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/frame-states.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698