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

Side by Side Diff: src/builtins/builtins.h

Issue 2801073006: Decouple root visitors from object visitors. (Closed)
Patch Set: rebase Created 3 years, 8 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/bootstrapper.cc ('k') | src/builtins/builtins.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_BUILTINS_BUILTINS_H_ 5 #ifndef V8_BUILTINS_BUILTINS_H_
6 #define V8_BUILTINS_BUILTINS_H_ 6 #define V8_BUILTINS_BUILTINS_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/builtins/builtins-definitions.h" 9 #include "src/builtins/builtins-definitions.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 class Callable; 15 class Callable;
16 template <typename T> 16 template <typename T>
17 class Handle; 17 class Handle;
18 class Isolate; 18 class Isolate;
19 19
20 // Forward declarations. 20 // Forward declarations.
21 class ObjectVisitor; 21 class RootVisitor;
22 enum class InterpreterPushArgsMode : unsigned; 22 enum class InterpreterPushArgsMode : unsigned;
23 namespace compiler { 23 namespace compiler {
24 class CodeAssemblerState; 24 class CodeAssemblerState;
25 } 25 }
26 26
27 class Builtins { 27 class Builtins {
28 public: 28 public:
29 ~Builtins(); 29 ~Builtins();
30 30
31 void TearDown(); 31 void TearDown();
32 32
33 // Garbage collection support. 33 // Garbage collection support.
34 void IterateBuiltins(ObjectVisitor* v); 34 void IterateBuiltins(RootVisitor* v);
35 35
36 // Disassembler support. 36 // Disassembler support.
37 const char* Lookup(byte* pc); 37 const char* Lookup(byte* pc);
38 38
39 enum Name : int32_t { 39 enum Name : int32_t {
40 #define DEF_ENUM(Name, ...) k##Name, 40 #define DEF_ENUM(Name, ...) k##Name,
41 BUILTIN_LIST_ALL(DEF_ENUM) 41 BUILTIN_LIST_ALL(DEF_ENUM)
42 #undef DEF_ENUM 42 #undef DEF_ENUM
43 builtin_count 43 builtin_count
44 }; 44 };
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 friend class Isolate; 151 friend class Isolate;
152 friend class SetupIsolateDelegate; 152 friend class SetupIsolateDelegate;
153 153
154 DISALLOW_COPY_AND_ASSIGN(Builtins); 154 DISALLOW_COPY_AND_ASSIGN(Builtins);
155 }; 155 };
156 156
157 } // namespace internal 157 } // namespace internal
158 } // namespace v8 158 } // namespace v8
159 159
160 #endif // V8_BUILTINS_BUILTINS_H_ 160 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698