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 3211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3222 | 3222 |
3223 | 3223 |
3224 TEST(Regress169928) { | 3224 TEST(Regress169928) { |
3225 i::FLAG_allow_natives_syntax = true; | 3225 i::FLAG_allow_natives_syntax = true; |
3226 i::FLAG_crankshaft = false; | 3226 i::FLAG_crankshaft = false; |
3227 CcTest::InitializeVM(); | 3227 CcTest::InitializeVM(); |
3228 Isolate* isolate = CcTest::i_isolate(); | 3228 Isolate* isolate = CcTest::i_isolate(); |
3229 Factory* factory = isolate->factory(); | 3229 Factory* factory = isolate->factory(); |
3230 v8::HandleScope scope(CcTest::isolate()); | 3230 v8::HandleScope scope(CcTest::isolate()); |
3231 | 3231 |
3232 HeapObjectsTracker tracker; | |
Hannes Payer (out of office)
2013/10/02 18:00:29
Why is that here?
Alexandra Mikhaylova
2013/10/03 16:27:55
I used HeapObjectsTracker here to find some untrac
| |
3233 | |
3232 // Some flags turn Scavenge collections into Mark-sweep collections | 3234 // Some flags turn Scavenge collections into Mark-sweep collections |
3233 // and hence are incompatible with this test case. | 3235 // and hence are incompatible with this test case. |
3234 if (FLAG_gc_global || FLAG_stress_compaction) return; | 3236 if (FLAG_gc_global || FLAG_stress_compaction) return; |
3235 | 3237 |
3236 // Prepare the environment | 3238 // Prepare the environment |
3237 CompileRun("function fastliteralcase(literal, value) {" | 3239 CompileRun("function fastliteralcase(literal, value) {" |
3238 " literal[0] = value;" | 3240 " literal[0] = value;" |
3239 " return literal;" | 3241 " return literal;" |
3240 "}" | 3242 "}" |
3241 "function get_standard_literal() {" | 3243 "function get_standard_literal() {" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3440 " var a = new Array(n);" | 3442 " var a = new Array(n);" |
3441 " for (var i = 0; i < n; i += 100) a[i] = i;" | 3443 " for (var i = 0; i < n; i += 100) a[i] = i;" |
3442 "};" | 3444 "};" |
3443 "f(10 * 1024 * 1024);"); | 3445 "f(10 * 1024 * 1024);"); |
3444 IncrementalMarking* marking = CcTest::heap()->incremental_marking(); | 3446 IncrementalMarking* marking = CcTest::heap()->incremental_marking(); |
3445 if (marking->IsStopped()) marking->Start(); | 3447 if (marking->IsStopped()) marking->Start(); |
3446 // This big step should be sufficient to mark the whole array. | 3448 // This big step should be sufficient to mark the whole array. |
3447 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD); | 3449 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD); |
3448 ASSERT(marking->IsComplete()); | 3450 ASSERT(marking->IsComplete()); |
3449 } | 3451 } |
OLD | NEW |