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

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

Issue 23414008: Revert "Snapshot i18n Javascript code" and "Fix mjsunit/debug-script after r16298". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 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 // Disable loading the i18n extension which breaks the assumptions of this
3072 // test about the heap layout.
3073 i::FLAG_enable_i18n = false;
3074
3071 CcTest::InitializeVM(); 3075 CcTest::InitializeVM();
3072 Isolate* isolate = Isolate::Current(); 3076 Isolate* isolate = Isolate::Current();
3073 Heap* heap = isolate->heap(); 3077 Heap* heap = isolate->heap();
3074 HandleScope scope(isolate); 3078 HandleScope scope(isolate);
3075 3079
3076 // Perform one initial GC to enable code flushing. 3080 // Perform one initial GC to enable code flushing.
3077 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask); 3081 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
3078 3082
3079 // Prepare a shared function info eligible for code flushing for which 3083 // Prepare a shared function info eligible for code flushing for which
3080 // the unoptimized code will be replaced during optimization. 3084 // the unoptimized code will be replaced during optimization.
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3370 " var a = new Array(n);" 3374 " var a = new Array(n);"
3371 " for (var i = 0; i < n; i += 100) a[i] = i;" 3375 " for (var i = 0; i < n; i += 100) a[i] = i;"
3372 "};" 3376 "};"
3373 "f(10 * 1024 * 1024);"); 3377 "f(10 * 1024 * 1024);");
3374 IncrementalMarking* marking = HEAP->incremental_marking(); 3378 IncrementalMarking* marking = HEAP->incremental_marking();
3375 if (marking->IsStopped()) marking->Start(); 3379 if (marking->IsStopped()) marking->Start();
3376 // This big step should be sufficient to mark the whole array. 3380 // This big step should be sufficient to mark the whole array.
3377 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD); 3381 marking->Step(100 * MB, IncrementalMarking::NO_GC_VIA_STACK_GUARD);
3378 ASSERT(marking->IsComplete()); 3382 ASSERT(marking->IsComplete());
3379 } 3383 }
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