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

Unified Diff: src/external-reference-table.cc

Issue 2145413002: [builtins] unify builtins list. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix typos 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/counters.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/external-reference-table.cc
diff --git a/src/external-reference-table.cc b/src/external-reference-table.cc
index 2943368a2057d6e1265bbbd14ba4fab24d956e44..24727d2dc02df6b3fbc7bb03589b59a6ccae0ec0 100644
--- a/src/external-reference-table.cc
+++ b/src/external-reference-table.cc
@@ -248,9 +248,9 @@ ExternalReferenceTable::ExternalReferenceTable(Isolate* isolate) {
};
static const RefTableEntry c_builtins[] = {
-#define DEF_ENTRY_C(name, ignore) {Builtins::c_##name, "Builtins::" #name},
- BUILTIN_LIST_C(DEF_ENTRY_C)
-#undef DEF_ENTRY_C
+#define DEF_ENTRY(name) {Builtins::c_##name, "Builtins::" #name},
+ BUILTIN_LIST_C(DEF_ENTRY)
+#undef DEF_ENTRY
};
for (unsigned i = 0; i < arraysize(c_builtins); ++i) {
@@ -260,12 +260,9 @@ ExternalReferenceTable::ExternalReferenceTable(Isolate* isolate) {
}
static const RefTableEntry builtins[] = {
-#define DEF_ENTRY_C(name, ignore) {Builtins::k##name, "Builtins::" #name},
-#define DEF_ENTRY_A(name, i1, i2) {Builtins::k##name, "Builtins::" #name},
- BUILTIN_LIST_C(DEF_ENTRY_C) BUILTIN_LIST_A(DEF_ENTRY_A)
- BUILTIN_LIST_DEBUG_A(DEF_ENTRY_A)
-#undef DEF_ENTRY_C
-#undef DEF_ENTRY_A
+#define DEF_ENTRY(name, ...) {Builtins::k##name, "Builtins::" #name},
+ BUILTIN_LIST_C(DEF_ENTRY) BUILTIN_LIST_A(DEF_ENTRY)
+#undef DEF_ENTRY
};
for (unsigned i = 0; i < arraysize(builtins); ++i) {
« no previous file with comments | « src/counters.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698