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 3050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3061 // Unoptimized code is missing and the deoptimizer will go ballistic. | 3061 // Unoptimized code is missing and the deoptimizer will go ballistic. |
3062 CompileRun("var g = mkClosure(); g('bozo');"); | 3062 CompileRun("var g = mkClosure(); g('bozo');"); |
3063 } | 3063 } |
3064 | 3064 |
3065 | 3065 |
3066 TEST(Regress169209) { | 3066 TEST(Regress169209) { |
3067 i::FLAG_stress_compaction = false; | 3067 i::FLAG_stress_compaction = false; |
3068 i::FLAG_allow_natives_syntax = true; | 3068 i::FLAG_allow_natives_syntax = true; |
3069 i::FLAG_flush_code_incrementally = true; | 3069 i::FLAG_flush_code_incrementally = true; |
3070 | 3070 |
3071 // Experimental natives are compiled during snapshot deserialization. | |
3072 // This test breaks because heap layout changes in a way that closure | |
3073 // is visited before shared function info. | |
3074 i::FLAG_harmony_typed_arrays = false; | |
3075 i::FLAG_harmony_array_buffer = false; | |
3076 | |
3077 // Disable loading the i18n extension which breaks the assumptions of this | 3071 // Disable loading the i18n extension which breaks the assumptions of this |
3078 // test about the heap layout. | 3072 // test about the heap layout. |
3079 i::FLAG_enable_i18n = false; | 3073 i::FLAG_enable_i18n = false; |
3080 | 3074 |
3081 CcTest::InitializeVM(); | 3075 CcTest::InitializeVM(); |
3082 Isolate* isolate = Isolate::Current(); | 3076 Isolate* isolate = Isolate::Current(); |
3083 Heap* heap = isolate->heap(); | 3077 Heap* heap = isolate->heap(); |
3084 HandleScope scope(isolate); | 3078 HandleScope scope(isolate); |
3085 | 3079 |
3086 // Perform one initial GC to enable code flushing. | 3080 // Perform one initial GC to enable code flushing. |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3380 " var a = new Array(n);" | 3374 " var a = new Array(n);" |
3381 " for (var i = 0; i < n; i += 100) a[i] = i;" | 3375 " for (var i = 0; i < n; i += 100) a[i] = i;" |
3382 "};" | 3376 "};" |
3383 "f(10 * 1024 * 1024);"); | 3377 "f(10 * 1024 * 1024);"); |
3384 IncrementalMarking* marking = HEAP->incremental_marking(); | 3378 IncrementalMarking* marking = HEAP->incremental_marking(); |
3385 if (marking->IsStopped()) marking->Start(); | 3379 if (marking->IsStopped()) marking->Start(); |
3386 // This big step should be sufficient to mark the whole array. | 3380 // This big step should be sufficient to mark the whole array. |
3387 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD); | 3381 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD); |
3388 ASSERT(marking->IsComplete()); | 3382 ASSERT(marking->IsComplete()); |
3389 } | 3383 } |
OLD | NEW |