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

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

Issue 2513563002: Remove FLAG_min_preparse_length. (Closed)
Patch Set: test262 expectations Created 4 years, 1 month 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
« no previous file with comments | « test/cctest/test-parsing.cc ('k') | test/message/for-loop-invalid-lhs.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 2007-2010 the V8 project authors. All rights reserved. 1 // Copyright 2007-2010 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 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1764 isolate->Dispose(); 1764 isolate->Dispose();
1765 } 1765 }
1766 1766
1767 TEST(CodeSerializerEagerCompilationAndPreAge) { 1767 TEST(CodeSerializerEagerCompilationAndPreAge) {
1768 if (FLAG_ignition || FLAG_turbo) return; 1768 if (FLAG_ignition || FLAG_turbo) return;
1769 1769
1770 FLAG_lazy = true; 1770 FLAG_lazy = true;
1771 FLAG_serialize_toplevel = true; 1771 FLAG_serialize_toplevel = true;
1772 FLAG_serialize_age_code = true; 1772 FLAG_serialize_age_code = true;
1773 FLAG_serialize_eager = true; 1773 FLAG_serialize_eager = true;
1774 FLAG_min_preparse_length = 1;
1775 1774
1776 static const char* source = 1775 static const char* source =
1777 "function f() {" 1776 "function f() {"
1778 " function g() {" 1777 " function g() {"
1779 " return 1;" 1778 " return 1;"
1780 " }" 1779 " }"
1781 " return g();" 1780 " return g();"
1782 "}" 1781 "}"
1783 "'abcdef';"; 1782 "'abcdef';";
1784 1783
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2301 } 2300 }
2302 delete[] blob.data; 2301 delete[] blob.data;
2303 } 2302 }
2304 2303
2305 TEST(SerializationMemoryStats) { 2304 TEST(SerializationMemoryStats) {
2306 FLAG_profile_deserialization = true; 2305 FLAG_profile_deserialization = true;
2307 FLAG_always_opt = false; 2306 FLAG_always_opt = false;
2308 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); 2307 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob();
2309 delete[] blob.data; 2308 delete[] blob.data;
2310 } 2309 }
OLDNEW
« no previous file with comments | « test/cctest/test-parsing.cc ('k') | test/message/for-loop-invalid-lhs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698