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

Side by Side Diff: src/compiler/linkage.h

Issue 2021323003: [wasm] remove faux code objects Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/instruction-selector.cc ('k') | src/compiler/linkage.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_LINKAGE_H_ 5 #ifndef V8_COMPILER_LINKAGE_H_
6 #define V8_COMPILER_LINKAGE_H_ 6 #define V8_COMPILER_LINKAGE_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/frame.h" 9 #include "src/compiler/frame.h"
10 #include "src/compiler/operator.h" 10 #include "src/compiler/operator.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 }; 137 };
138 138
139 typedef Signature<LinkageLocation> LocationSignature; 139 typedef Signature<LinkageLocation> LocationSignature;
140 140
141 // Describes a call to various parts of the compiler. Every call has the notion 141 // Describes a call to various parts of the compiler. Every call has the notion
142 // of a "target", which is the first input to the call. 142 // of a "target", which is the first input to the call.
143 class CallDescriptor final : public ZoneObject { 143 class CallDescriptor final : public ZoneObject {
144 public: 144 public:
145 // Describes the kind of this call, which determines the target. 145 // Describes the kind of this call, which determines the target.
146 enum Kind { 146 enum Kind {
147 kCallCodeObject, // target is a Code object 147 kCallCodeObject, // target is a Code object
148 kCallJSFunction, // target is a JSFunction object 148 kCallWasmFunction, // target is a Wasm function identified by its index
149 kCallAddress // target is a machine pointer 149 kCallJSFunction, // target is a JSFunction object
150 kCallAddress // target is a machine pointer
150 }; 151 };
151 152
152 enum Flag { 153 enum Flag {
153 kNoFlags = 0u, 154 kNoFlags = 0u,
154 kNeedsFrameState = 1u << 0, 155 kNeedsFrameState = 1u << 0,
155 kHasExceptionHandler = 1u << 1, 156 kHasExceptionHandler = 1u << 1,
156 kHasLocalCatchHandler = 1u << 2, 157 kHasLocalCatchHandler = 1u << 2,
157 kSupportsTailCalls = 1u << 3, 158 kSupportsTailCalls = 1u << 3,
158 kCanUseRoots = 1u << 4, 159 kCanUseRoots = 1u << 4,
159 // (arm64 only) native stack should be used for arguments. 160 // (arm64 only) native stack should be used for arguments.
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 CallDescriptor* const incoming_; 404 CallDescriptor* const incoming_;
404 405
405 DISALLOW_COPY_AND_ASSIGN(Linkage); 406 DISALLOW_COPY_AND_ASSIGN(Linkage);
406 }; 407 };
407 408
408 } // namespace compiler 409 } // namespace compiler
409 } // namespace internal 410 } // namespace internal
410 } // namespace v8 411 } // namespace v8
411 412
412 #endif // V8_COMPILER_LINKAGE_H_ 413 #endif // V8_COMPILER_LINKAGE_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698