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

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

Issue 1704033002: [wasm] WasmRunner can run tests with I64 parameters and return value. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@new_wasm_runner
Patch Set: Created 4 years, 10 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/int64-lowering.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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // well as {param_index} (i.e. as stored in parameter nodes) into an operator 302 // well as {param_index} (i.e. as stored in parameter nodes) into an operator
303 // representing the architecture-specific location. The following call node 303 // representing the architecture-specific location. The following call node
304 // layouts are supported (where {n} is the number of value inputs): 304 // layouts are supported (where {n} is the number of value inputs):
305 // 305 //
306 // #0 #1 #2 #3 [...] #n 306 // #0 #1 #2 #3 [...] #n
307 // Call[CodeStub] code, arg 1, arg 2, arg 3, [...], context 307 // Call[CodeStub] code, arg 1, arg 2, arg 3, [...], context
308 // Call[JSFunction] function, rcvr, arg 1, arg 2, [...], new, #arg, context 308 // Call[JSFunction] function, rcvr, arg 1, arg 2, [...], new, #arg, context
309 // Call[Runtime] CEntryStub, arg 1, arg 2, arg 3, [...], fun, #arg, context 309 // Call[Runtime] CEntryStub, arg 1, arg 2, arg 3, [...], fun, #arg, context
310 class Linkage : public ZoneObject { 310 class Linkage : public ZoneObject {
311 public: 311 public:
312 explicit Linkage(CallDescriptor* incoming) : incoming_(incoming) {} 312 explicit Linkage(const CallDescriptor* incoming) : incoming_(incoming) {}
titzer 2016/02/18 08:21:32 CallDescriptors are immutable, so no need to add t
313 313
314 static CallDescriptor* ComputeIncoming(Zone* zone, CompilationInfo* info); 314 static const CallDescriptor* ComputeIncoming(Zone* zone,
315 CompilationInfo* info);
315 316
316 // The call descriptor for this compilation unit describes the locations 317 // The call descriptor for this compilation unit describes the locations
317 // of incoming parameters and the outgoing return value(s). 318 // of incoming parameters and the outgoing return value(s).
318 CallDescriptor* GetIncomingDescriptor() const { return incoming_; } 319 const CallDescriptor* GetIncomingDescriptor() const { return incoming_; }
319 static CallDescriptor* GetJSCallDescriptor(Zone* zone, bool is_osr, 320 static CallDescriptor* GetJSCallDescriptor(Zone* zone, bool is_osr,
320 int parameter_count, 321 int parameter_count,
321 CallDescriptor::Flags flags); 322 CallDescriptor::Flags flags);
322 323
323 static CallDescriptor* GetRuntimeCallDescriptor( 324 static CallDescriptor* GetRuntimeCallDescriptor(
324 Zone* zone, Runtime::FunctionId function, int parameter_count, 325 Zone* zone, Runtime::FunctionId function, int parameter_count,
325 Operator::Properties properties, CallDescriptor::Flags flags); 326 Operator::Properties properties, CallDescriptor::Flags flags);
326 327
327 static CallDescriptor* GetStubCallDescriptor( 328 static CallDescriptor* GetStubCallDescriptor(
328 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, 329 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 return parameter_count + 2; // Parameter (arity + 2) is special. 383 return parameter_count + 2; // Parameter (arity + 2) is special.
383 } 384 }
384 385
385 // A special {Parameter} index for JSCalls that represents the closure. 386 // A special {Parameter} index for JSCalls that represents the closure.
386 static const int kJSCallClosureParamIndex = -1; 387 static const int kJSCallClosureParamIndex = -1;
387 388
388 // A special {OsrValue} index to indicate the context spill slot. 389 // A special {OsrValue} index to indicate the context spill slot.
389 static const int kOsrContextSpillSlotIndex = -1; 390 static const int kOsrContextSpillSlotIndex = -1;
390 391
391 private: 392 private:
392 CallDescriptor* const incoming_; 393 const CallDescriptor* const incoming_;
393 394
394 DISALLOW_COPY_AND_ASSIGN(Linkage); 395 DISALLOW_COPY_AND_ASSIGN(Linkage);
395 }; 396 };
396 397
397 } // namespace compiler 398 } // namespace compiler
398 } // namespace internal 399 } // namespace internal
399 } // namespace v8 400 } // namespace v8
400 401
401 #endif // V8_COMPILER_LINKAGE_H_ 402 #endif // V8_COMPILER_LINKAGE_H_
OLDNEW
« no previous file with comments | « src/compiler/int64-lowering.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698