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

Unified Diff: test/cctest/cctest.h

Issue 1518703002: Re-re-land FastAccessorBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add test restrictions, as for test-api-fast-accessor-builder Created 5 years 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/compiler/fast-accessor-assembler.cc ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/cctest.h
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
index 0def37546f4241c71456874452e0d6dbe9aed474..fe9ae6e38d9ae1a4addcfd18c0d4bedc6ff66b60 100644
--- a/test/cctest/cctest.h
+++ b/test/cctest/cctest.h
@@ -550,6 +550,12 @@ static inline void ExpectUndefined(const char* code) {
}
+static inline void ExpectNull(const char* code) {
+ v8::Local<v8::Value> result = CompileRun(code);
+ CHECK(result->IsNull());
+}
+
+
static inline void CheckDoubleEquals(double expected, double actual) {
const double kEpsilon = 1e-10;
CHECK_LE(expected, actual + kEpsilon);
« no previous file with comments | « src/compiler/fast-accessor-assembler.cc ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698