| OLD | NEW |
| 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 2671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2682 " (function f() { f(); })(); " | 2682 " (function f() { f(); })(); " |
| 2683 "} catch (e) { " | 2683 "} catch (e) { " |
| 2684 " error = e; " | 2684 " error = e; " |
| 2685 "} "; | 2685 "} "; |
| 2686 ReleaseStackTraceDataTest(source1); | 2686 ReleaseStackTraceDataTest(source1); |
| 2687 ReleaseStackTraceDataTest(source2); | 2687 ReleaseStackTraceDataTest(source2); |
| 2688 } | 2688 } |
| 2689 | 2689 |
| 2690 | 2690 |
| 2691 TEST(Regression144230) { | 2691 TEST(Regression144230) { |
| 2692 i::FLAG_stress_compaction = false; |
| 2692 CcTest::InitializeVM(); | 2693 CcTest::InitializeVM(); |
| 2693 Isolate* isolate = Isolate::Current(); | 2694 Isolate* isolate = Isolate::Current(); |
| 2694 Heap* heap = isolate->heap(); | 2695 Heap* heap = isolate->heap(); |
| 2695 HandleScope scope(isolate); | 2696 HandleScope scope(isolate); |
| 2696 | 2697 |
| 2697 // First make sure that the uninitialized CallIC stub is on a single page | 2698 // First make sure that the uninitialized CallIC stub is on a single page |
| 2698 // that will later be selected as an evacuation candidate. | 2699 // that will later be selected as an evacuation candidate. |
| 2699 { | 2700 { |
| 2700 HandleScope inner_scope(isolate); | 2701 HandleScope inner_scope(isolate); |
| 2701 AlwaysAllocateScope always_allocate; | 2702 AlwaysAllocateScope always_allocate; |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3171 " var a = new Array(n);" | 3172 " var a = new Array(n);" |
| 3172 " for (var i = 0; i < n; i += 100) a[i] = i;" | 3173 " for (var i = 0; i < n; i += 100) a[i] = i;" |
| 3173 "};" | 3174 "};" |
| 3174 "f(10 * 1024 * 1024);"); | 3175 "f(10 * 1024 * 1024);"); |
| 3175 IncrementalMarking* marking = HEAP->incremental_marking(); | 3176 IncrementalMarking* marking = HEAP->incremental_marking(); |
| 3176 if (marking->IsStopped()) marking->Start(); | 3177 if (marking->IsStopped()) marking->Start(); |
| 3177 // This big step should be sufficient to mark the whole array. | 3178 // This big step should be sufficient to mark the whole array. |
| 3178 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD); | 3179 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD); |
| 3179 ASSERT(marking->IsComplete()); | 3180 ASSERT(marking->IsComplete()); |
| 3180 } | 3181 } |
| OLD | NEW |