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

Unified Diff: src/builtins/builtins.h

Issue 2145023002: [builtins] move builtin files to src/builtins/. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins.h
diff --git a/src/builtins.h b/src/builtins/builtins.h
similarity index 97%
rename from src/builtins.h
rename to src/builtins/builtins.h
index 7289a4061debc2fcb988d3774c1e326cc0b0d831..2c78642d8b33e9dbf4fecf2377c1b2d741a8ef55 100644
--- a/src/builtins.h
+++ b/src/builtins/builtins.h
@@ -1,10 +1,9 @@
-
// Copyright 2011 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_BUILTINS_H_
-#define V8_BUILTINS_H_
+#ifndef V8_BUILTINS_BUILTINS_H_
+#define V8_BUILTINS_BUILTINS_H_
#include "src/base/flags.h"
#include "src/handles.h"
@@ -15,23 +14,22 @@ namespace internal {
// Forward declarations.
class CodeStubAssembler;
-#define CODE_AGE_LIST_WITH_ARG(V, A) \
- V(Quadragenarian, A) \
- V(Quinquagenarian, A) \
- V(Sexagenarian, A) \
- V(Septuagenarian, A) \
+#define CODE_AGE_LIST_WITH_ARG(V, A) \
+ V(Quadragenarian, A) \
+ V(Quinquagenarian, A) \
+ V(Sexagenarian, A) \
+ V(Septuagenarian, A) \
V(Octogenarian, A)
#define CODE_AGE_LIST_IGNORE_ARG(X, V) V(X)
-#define CODE_AGE_LIST(V) \
- CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V)
+#define CODE_AGE_LIST(V) CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V)
-#define CODE_AGE_LIST_COMPLETE(V) \
- V(ToBeExecutedOnce) \
- V(NotExecuted) \
- V(ExecutedOnce) \
- V(NoAge) \
+#define CODE_AGE_LIST_COMPLETE(V) \
+ V(ToBeExecutedOnce) \
+ V(NotExecuted) \
+ V(ExecutedOnce) \
+ V(NoAge) \
CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V)
#define DECLARE_CODE_AGE_BUILTIN(C, V) \
@@ -392,7 +390,6 @@ class CodeStubAssembler;
class BuiltinFunctionTable;
class ObjectVisitor;
-
class Builtins {
public:
~Builtins();
@@ -414,15 +411,18 @@ class Builtins {
#define DEF_ENUM_T(name, argc) k##name,
#define DEF_ENUM_S(name, kind, extra, interface_descriptor) k##name,
#define DEF_ENUM_H(name, kind) k##name,
- BUILTIN_LIST_C(DEF_ENUM_C) BUILTIN_LIST_A(DEF_ENUM_A)
- BUILTIN_LIST_T(DEF_ENUM_T) BUILTIN_LIST_S(DEF_ENUM_S)
- BUILTIN_LIST_H(DEF_ENUM_H) BUILTIN_LIST_DEBUG_A(DEF_ENUM_A)
+ BUILTIN_LIST_C(DEF_ENUM_C)
+ BUILTIN_LIST_A(DEF_ENUM_A)
+ BUILTIN_LIST_T(DEF_ENUM_T)
+ BUILTIN_LIST_S(DEF_ENUM_S)
+ BUILTIN_LIST_H(DEF_ENUM_H)
+ BUILTIN_LIST_DEBUG_A(DEF_ENUM_A)
#undef DEF_ENUM_C
#undef DEF_ENUM_A
#undef DEF_ENUM_T
#undef DEF_ENUM_S
#undef DEF_ENUM_H
- builtin_count
+ builtin_count
};
enum CFunctionId {
@@ -471,9 +471,7 @@ class Builtins {
return reinterpret_cast<Address>(&builtins_[name]);
}
- static Address c_function_address(CFunctionId id) {
- return c_functions_[id];
- }
+ static Address c_function_address(CFunctionId id) { return c_functions_[id]; }
const char* name(int index) {
DCHECK(index >= 0);
@@ -821,11 +819,10 @@ class Builtins {
CallableType function_type);
static void Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm);
-#define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \
- static void Generate_Make##C##CodeYoungAgainEvenMarking( \
- MacroAssembler* masm); \
- static void Generate_Make##C##CodeYoungAgainOddMarking( \
- MacroAssembler* masm);
+#define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \
+ static void Generate_Make##C##CodeYoungAgainEvenMarking( \
+ MacroAssembler* masm); \
+ static void Generate_Make##C##CodeYoungAgainOddMarking(MacroAssembler* masm);
CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR)
#undef DECLARE_CODE_AGE_BUILTIN_GENERATOR
@@ -849,4 +846,4 @@ class Builtins {
} // namespace internal
} // namespace v8
-#endif // V8_BUILTINS_H_
+#endif // V8_BUILTINS_BUILTINS_H_
« no previous file with comments | « src/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698