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

Unified Diff: test/cctest/test-javascript-a64.cc

Issue 148503002: A64: Synchronize with r15545. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | « test/cctest/test-heap-profiler.cc ('k') | test/cctest/test-js-a64-variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-javascript-a64.cc
diff --git a/test/cctest/test-javascript-a64.cc b/test/cctest/test-javascript-a64.cc
index ec4e4788a7b86fdf5036ca3bccc10cea650d5898..39f8aa166c94b43a9f33089dd7117824d70aaaae 100644
--- a/test/cctest/test-javascript-a64.cc
+++ b/test/cctest/test-javascript-a64.cc
@@ -67,20 +67,24 @@ static void ExpectBoolean(bool expected, Local<Value> result) {
CHECK_EQ(expected, result->BooleanValue());
}
+
static void ExpectInt32(int32_t expected, Local<Value> result) {
CHECK(result->IsInt32());
CHECK_EQ(expected, result->Int32Value());
}
+
static void ExpectNumber(double expected, Local<Value> result) {
CHECK(result->IsNumber());
CHECK_EQ(expected, result->NumberValue());
}
+
static void ExpectUndefined(Local<Value> result) {
CHECK(result->IsUndefined());
}
+
// Tests are sorted by order of implementation.
TEST(simple_value) {
@@ -171,6 +175,7 @@ static void if_comparison_helper(
if_comparison_effectcontext_helper(op, "9", "7", expect_when_gt);
}
+
TEST(if_comparison) {
v8::HandleScope scope;
LocalContext env;
@@ -185,6 +190,7 @@ TEST(if_comparison) {
if_comparison_helper("!==", 1, 0, 1);
}
+
TEST(unary_plus) {
v8::HandleScope scope;
LocalContext env;
@@ -206,6 +212,7 @@ TEST(unary_plus) {
ExpectInt32(4321, result);
}
+
TEST(unary_minus) {
v8::HandleScope scope;
LocalContext env;
@@ -222,6 +229,7 @@ TEST(unary_minus) {
ExpectNumber(-1234.5, result);
}
+
TEST(unary_void) {
v8::HandleScope scope;
LocalContext env;
@@ -234,6 +242,7 @@ TEST(unary_void) {
ExpectUndefined(result);
}
+
TEST(unary_not) {
v8::HandleScope scope;
LocalContext env;
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('k') | test/cctest/test-js-a64-variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698