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

Unified Diff: test/cctest/test-mips.cc

Issue 1320006: Updates and fixes for MIPS support. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 7 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
« src/mips/macro-assembler-mips.cc ('K') | « test/cctest/test-assembler-mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-mips.cc
===================================================================
--- test/cctest/test-mips.cc (revision 4259)
+++ test/cctest/test-mips.cc (working copy)
@@ -45,8 +45,27 @@
v8::HandleScope scope;
LocalContext env; // from cctest.h
- const char* c_source = "function foo() { return 0x1234; }; foo();";
- Local<String> source = ::v8::String::New(c_source);
- Local<Script> script = ::v8::Script::Compile(source);
- CHECK_EQ(0x1234, script->Run()->Int32Value());
+ const char* c_source_1 =
+ "function foo() {"
+ " return 0xabcd;"
+ "}"
+ "foo();";
+ Local<String> source_1 = ::v8::String::New(c_source_1);
+ Local<Script> script_1 = ::v8::Script::Compile(source_1);
+ CHECK_EQ(0xabcd, script_1->Run()->Int32Value());
+
+
+ const char* c_source_2 =
+ "function foo1(arg1, arg2, arg3, arg4, arg5) {"
+ " return foo2(arg1, foo2(arg3, arg4));"
+ "}"
+ ""
+ "function foo2(arg1, arg2) {"
+ " return arg2;"
+ "}"
+ "foo1(1, 2, 3, 4, 5);";
+
+ Local<String> source_2 = ::v8::String::New(c_source_2);
+ Local<Script> script_2 = ::v8::Script::Compile(source_2);
+ CHECK_EQ(4, script_2->Run()->Int32Value());
}
« src/mips/macro-assembler-mips.cc ('K') | « test/cctest/test-assembler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698