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

Side by Side Diff: test/cctest/test-parsing.cc

Issue 14075017: Disable ParserSync test in GC stress mode for now. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Jakob Kummerow. Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 1231
1232 const char* termination_data[] = { 1232 const char* termination_data[] = {
1233 "", 1233 "",
1234 ";", 1234 ";",
1235 "\n", 1235 "\n",
1236 ";\n", 1236 ";\n",
1237 "\n;", 1237 "\n;",
1238 NULL 1238 NULL
1239 }; 1239 };
1240 1240
1241 // TODO(mstarzinger): Disabled in GC stress mode for now, we should find the
1242 // correct timeout for this and re-enable this test again.
1243 if (i::FLAG_stress_compaction) return;
1244
1241 v8::HandleScope handles(v8::Isolate::GetCurrent()); 1245 v8::HandleScope handles(v8::Isolate::GetCurrent());
1242 v8::Persistent<v8::Context> context = v8::Context::New(); 1246 v8::Persistent<v8::Context> context = v8::Context::New();
1243 v8::Context::Scope context_scope(context); 1247 v8::Context::Scope context_scope(context);
1244 1248
1245 int marker; 1249 int marker;
1246 i::Isolate::Current()->stack_guard()->SetStackLimit( 1250 i::Isolate::Current()->stack_guard()->SetStackLimit(
1247 reinterpret_cast<uintptr_t>(&marker) - 128 * 1024); 1251 reinterpret_cast<uintptr_t>(&marker) - 128 * 1024);
1248 1252
1249 for (int i = 0; context_data[i][0] != NULL; ++i) { 1253 for (int i = 0; context_data[i][0] != NULL; ++i) {
1250 for (int j = 0; statement_data[j] != NULL; ++j) { 1254 for (int j = 0; statement_data[j] != NULL; ++j) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 " b = function() { \n" 1292 " b = function() { \n"
1289 " 01; \n" 1293 " 01; \n"
1290 " }; \n" 1294 " }; \n"
1291 "}; \n"; 1295 "}; \n";
1292 v8::Script::Compile(v8::String::New(script)); 1296 v8::Script::Compile(v8::String::New(script));
1293 CHECK(try_catch.HasCaught()); 1297 CHECK(try_catch.HasCaught());
1294 v8::String::Utf8Value exception(try_catch.Exception()); 1298 v8::String::Utf8Value exception(try_catch.Exception());
1295 CHECK_EQ("SyntaxError: Octal literals are not allowed in strict mode.", 1299 CHECK_EQ("SyntaxError: Octal literals are not allowed in strict mode.",
1296 *exception); 1300 *exception);
1297 } 1301 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698