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

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

Issue 22861037: Remove hacks for GC stress builders from cctests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-debug.cc ('k') | 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 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 1256
1257 const char* termination_data[] = { 1257 const char* termination_data[] = {
1258 "", 1258 "",
1259 ";", 1259 ";",
1260 "\n", 1260 "\n",
1261 ";\n", 1261 ";\n",
1262 "\n;", 1262 "\n;",
1263 NULL 1263 NULL
1264 }; 1264 };
1265 1265
1266 // TODO(mstarzinger): Disabled in GC stress mode for now, we should find the
1267 // correct timeout for this and re-enable this test again.
1268 if (i::FLAG_stress_compaction) return;
1269
1270 i::Isolate* isolate = i::Isolate::Current(); 1266 i::Isolate* isolate = i::Isolate::Current();
1271 i::Factory* factory = isolate->factory(); 1267 i::Factory* factory = isolate->factory();
1272 1268
1273 v8::HandleScope handles(v8::Isolate::GetCurrent()); 1269 v8::HandleScope handles(v8::Isolate::GetCurrent());
1274 v8::Handle<v8::Context> context = v8::Context::New(v8::Isolate::GetCurrent()); 1270 v8::Handle<v8::Context> context = v8::Context::New(v8::Isolate::GetCurrent());
1275 v8::Context::Scope context_scope(context); 1271 v8::Context::Scope context_scope(context);
1276 1272
1277 int marker; 1273 int marker;
1278 isolate->stack_guard()->SetStackLimit( 1274 isolate->stack_guard()->SetStackLimit(
1279 reinterpret_cast<uintptr_t>(&marker) - 128 * 1024); 1275 reinterpret_cast<uintptr_t>(&marker) - 128 * 1024);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 " b = function() { \n" 1317 " b = function() { \n"
1322 " 01; \n" 1318 " 01; \n"
1323 " }; \n" 1319 " }; \n"
1324 "}; \n"; 1320 "}; \n";
1325 v8::Script::Compile(v8::String::New(script)); 1321 v8::Script::Compile(v8::String::New(script));
1326 CHECK(try_catch.HasCaught()); 1322 CHECK(try_catch.HasCaught());
1327 v8::String::Utf8Value exception(try_catch.Exception()); 1323 v8::String::Utf8Value exception(try_catch.Exception());
1328 CHECK_EQ("SyntaxError: Octal literals are not allowed in strict mode.", 1324 CHECK_EQ("SyntaxError: Octal literals are not allowed in strict mode.",
1329 *exception); 1325 *exception);
1330 } 1326 }
OLDNEW
« no previous file with comments | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698