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

Side by Side Diff: test/cctest/test-mark-compact.cc

Issue 227113005: Make `String.prototype.contains` throw when passing a regular expression (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Fix test-mark-compact/BootUpMemoryUse on x64 Created 6 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
« no previous file with comments | « src/harmony-string.js ('k') | test/mjsunit/harmony/string-contains.js » ('j') | 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 FLAG_concurrent_recompilation = false; 499 FLAG_concurrent_recompilation = false;
500 500
501 // Only Linux has the proc filesystem and only if it is mapped. If it's not 501 // Only Linux has the proc filesystem and only if it is mapped. If it's not
502 // there we just skip the test. 502 // there we just skip the test.
503 if (initial_memory >= 0) { 503 if (initial_memory >= 0) {
504 CcTest::InitializeVM(); 504 CcTest::InitializeVM();
505 intptr_t delta = MemoryInUse() - initial_memory; 505 intptr_t delta = MemoryInUse() - initial_memory;
506 printf("delta: %" V8_PTR_PREFIX "d kB\n", delta / 1024); 506 printf("delta: %" V8_PTR_PREFIX "d kB\n", delta / 1024);
507 if (sizeof(initial_memory) == 8) { // 64-bit. 507 if (sizeof(initial_memory) == 8) { // 64-bit.
508 if (v8::internal::Snapshot::IsEnabled()) { 508 if (v8::internal::Snapshot::IsEnabled()) {
509 CHECK_LE(delta, 4000 * 1024); 509 CHECK_LE(delta, 4100 * 1024);
510 } else { 510 } else {
511 CHECK_LE(delta, 4500 * 1024); 511 CHECK_LE(delta, 4600 * 1024);
512 } 512 }
513 } else { // 32-bit. 513 } else { // 32-bit.
514 if (v8::internal::Snapshot::IsEnabled()) { 514 if (v8::internal::Snapshot::IsEnabled()) {
515 CHECK_LE(delta, 3100 * 1024); 515 CHECK_LE(delta, 3100 * 1024);
516 } else { 516 } else {
517 CHECK_LE(delta, 3450 * 1024); 517 CHECK_LE(delta, 3450 * 1024);
518 } 518 }
519 } 519 }
520 } 520 }
521 } 521 }
(...skipping 13 matching lines...) Expand all
535 535
536 536
537 TEST(RegressJoinThreadsOnIsolateDeinit) { 537 TEST(RegressJoinThreadsOnIsolateDeinit) {
538 intptr_t size_limit = ShortLivingIsolate() * 2; 538 intptr_t size_limit = ShortLivingIsolate() * 2;
539 for (int i = 0; i < 10; i++) { 539 for (int i = 0; i < 10; i++) {
540 CHECK_GT(size_limit, ShortLivingIsolate()); 540 CHECK_GT(size_limit, ShortLivingIsolate());
541 } 541 }
542 } 542 }
543 543
544 #endif // __linux__ and !USE_SIMULATOR 544 #endif // __linux__ and !USE_SIMULATOR
OLDNEW
« no previous file with comments | « src/harmony-string.js ('k') | test/mjsunit/harmony/string-contains.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698