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

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

Issue 23304005: Snapshot i18n Javascript code (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates 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 | « src/natives.h ('k') | test/mjsunit/debug-script.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 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 3071 // Experimental natives are compiled during snapshot deserialization.
3072 // This test breaks because heap layout changes in a way that closure 3072 // This test breaks because heap layout changes in a way that closure
3073 // is visited before shared function info. 3073 // is visited before shared function info.
3074 i::FLAG_harmony_typed_arrays = false; 3074 i::FLAG_harmony_typed_arrays = false;
3075 i::FLAG_harmony_array_buffer = false; 3075 i::FLAG_harmony_array_buffer = false;
3076 3076
3077 // Disable loading the i18n extension which breaks the assumptions of this
3078 // test about the heap layout.
3079 i::FLAG_enable_i18n = false;
3080
3081 CcTest::InitializeVM(); 3077 CcTest::InitializeVM();
3082 Isolate* isolate = Isolate::Current(); 3078 Isolate* isolate = Isolate::Current();
3083 Heap* heap = isolate->heap(); 3079 Heap* heap = isolate->heap();
3084 HandleScope scope(isolate); 3080 HandleScope scope(isolate);
3085 3081
3086 // Perform one initial GC to enable code flushing. 3082 // Perform one initial GC to enable code flushing.
3087 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask); 3083 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
3088 3084
3089 // Prepare a shared function info eligible for code flushing for which 3085 // Prepare a shared function info eligible for code flushing for which
3090 // the unoptimized code will be replaced during optimization. 3086 // the unoptimized code will be replaced during optimization.
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3380 " var a = new Array(n);" 3376 " var a = new Array(n);"
3381 " for (var i = 0; i < n; i += 100) a[i] = i;" 3377 " for (var i = 0; i < n; i += 100) a[i] = i;"
3382 "};" 3378 "};"
3383 "f(10 * 1024 * 1024);"); 3379 "f(10 * 1024 * 1024);");
3384 IncrementalMarking* marking = HEAP->incremental_marking(); 3380 IncrementalMarking* marking = HEAP->incremental_marking();
3385 if (marking->IsStopped()) marking->Start(); 3381 if (marking->IsStopped()) marking->Start();
3386 // This big step should be sufficient to mark the whole array. 3382 // This big step should be sufficient to mark the whole array.
3387 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD); 3383 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD);
3388 ASSERT(marking->IsComplete()); 3384 ASSERT(marking->IsComplete());
3389 } 3385 }
OLDNEW
« no previous file with comments | « src/natives.h ('k') | test/mjsunit/debug-script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698