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

Side by Side Diff: src/callable.h

Issue 2752213002: [csa] Add CSA::CallBuiltin and Builtins::CallableFor (Closed)
Patch Set: Remove unused variable again Created 3 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_CALLABLE_H_
6 #define V8_CALLABLE_H_
7
8 #include "src/allocation.h"
9 #include "src/interface-descriptors.h"
10
11 namespace v8 {
12 namespace internal {
13
14 class Code;
15
16 // Associates a body of code with an interface descriptor.
17 class Callable final BASE_EMBEDDED {
18 public:
19 Callable(Handle<Code> code, CallInterfaceDescriptor descriptor)
20 : code_(code), descriptor_(descriptor) {}
21
22 Handle<Code> code() const { return code_; }
23 CallInterfaceDescriptor descriptor() const { return descriptor_; }
24
25 private:
26 const Handle<Code> code_;
27 const CallInterfaceDescriptor descriptor_;
28 };
29
30 } // namespace internal
31 } // namespace v8
32
33 #endif // V8_CALLABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698