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

Unified Diff: test/cctest/test-code-stubs.cc

Issue 542613003: Introduce code stub constructors for stub keys. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: define MajorKey inline Created 6 years, 3 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/x64/code-stubs-x64.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-code-stubs.cc
diff --git a/test/cctest/test-code-stubs.cc b/test/cctest/test-code-stubs.cc
index 0784aac78e9c815716591f17717cddcefe08c98b..03af8897045a265b4192aedc8e792f3fbf2202d0 100644
--- a/test/cctest/test-code-stubs.cc
+++ b/test/cctest/test-code-stubs.cc
@@ -172,3 +172,19 @@ void RunAllTruncationTests(ConvertDToICallWrapper callWrapper,
#undef NaN
#undef Infinity
#undef RunOneTruncationTest
+
+
+TEST(CodeStubMajorKeys) {
+ CcTest::InitializeVM();
mvstanton 2014/09/04 14:23:59 Yay! nice test :).
+ LocalContext context;
+ Isolate* isolate = CcTest::i_isolate();
+
+#define CHECK_STUB(NAME) \
+ { \
+ HandleScope scope(isolate); \
+ NAME##Stub stub_impl(0xabcd, isolate); \
+ CodeStub* stub = &stub_impl; \
+ CHECK_EQ(stub->MajorKey(), CodeStub::NAME); \
+ }
+ CODE_STUB_LIST(CHECK_STUB);
+}
« no previous file with comments | « src/x64/code-stubs-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698