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

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

Issue 22985011: Revert "Promote ArrayBuffer, DataView and typed arrays to non-experimental." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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-api.cc ('k') | tools/gyp/v8.gyp » ('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 3050 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
3071 // Disable loading the i18n extension which breaks the assumptions of this 3077 // Disable loading the i18n extension which breaks the assumptions of this
3072 // test about the heap layout. 3078 // test about the heap layout.
3073 i::FLAG_enable_i18n = false; 3079 i::FLAG_enable_i18n = false;
3074 3080
3075 CcTest::InitializeVM(); 3081 CcTest::InitializeVM();
3076 Isolate* isolate = Isolate::Current(); 3082 Isolate* isolate = Isolate::Current();
3077 Heap* heap = isolate->heap(); 3083 Heap* heap = isolate->heap();
3078 HandleScope scope(isolate); 3084 HandleScope scope(isolate);
3079 3085
3080 // Perform one initial GC to enable code flushing. 3086 // Perform one initial GC to enable code flushing.
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
3374 " var a = new Array(n);" 3380 " var a = new Array(n);"
3375 " for (var i = 0; i < n; i += 100) a[i] = i;" 3381 " for (var i = 0; i < n; i += 100) a[i] = i;"
3376 "};" 3382 "};"
3377 "f(10 * 1024 * 1024);"); 3383 "f(10 * 1024 * 1024);");
3378 IncrementalMarking* marking = HEAP->incremental_marking(); 3384 IncrementalMarking* marking = HEAP->incremental_marking();
3379 if (marking->IsStopped()) marking->Start(); 3385 if (marking->IsStopped()) marking->Start();
3380 // This big step should be sufficient to mark the whole array. 3386 // This big step should be sufficient to mark the whole array.
3381 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD); 3387 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD);
3382 ASSERT(marking->IsComplete()); 3388 ASSERT(marking->IsComplete());
3383 } 3389 }
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698