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

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

Issue 2314843003: PPC [heap]: Increase size of the compiled source object (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | 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 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 1060
1061 v8::HandleScope scope(CcTest::isolate()); 1061 v8::HandleScope scope(CcTest::isolate());
1062 1062
1063 // The serializer only tests the shared code, which is always the unoptimized 1063 // The serializer only tests the shared code, which is always the unoptimized
1064 // code. Don't even bother generating optimized code to avoid timeouts. 1064 // code. Don't even bother generating optimized code to avoid timeouts.
1065 FLAG_always_opt = false; 1065 FLAG_always_opt = false;
1066 1066
1067 Vector<const uint8_t> source = 1067 Vector<const uint8_t> source =
1068 ConstructSource(STATIC_CHAR_VECTOR("var j=1; if (!j) {"), 1068 ConstructSource(STATIC_CHAR_VECTOR("var j=1; if (!j) {"),
1069 STATIC_CHAR_VECTOR("for (let i of Object.prototype);"), 1069 STATIC_CHAR_VECTOR("for (let i of Object.prototype);"),
1070 STATIC_CHAR_VECTOR("} j=7; j"), 1500); 1070 STATIC_CHAR_VECTOR("} j=7; j"), 2000);
1071 Handle<String> source_str = 1071 Handle<String> source_str =
1072 isolate->factory()->NewStringFromOneByte(source).ToHandleChecked(); 1072 isolate->factory()->NewStringFromOneByte(source).ToHandleChecked();
1073 1073
1074 Handle<JSObject> global(isolate->context()->global_object()); 1074 Handle<JSObject> global(isolate->context()->global_object());
1075 ScriptData* cache = NULL; 1075 ScriptData* cache = NULL;
1076 1076
1077 Handle<SharedFunctionInfo> orig = 1077 Handle<SharedFunctionInfo> orig =
1078 CompileScript(isolate, source_str, Handle<String>(), &cache, 1078 CompileScript(isolate, source_str, Handle<String>(), &cache,
1079 v8::ScriptCompiler::kProduceCodeCache); 1079 v8::ScriptCompiler::kProduceCodeCache);
1080 1080
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
2174 } 2174 }
2175 delete[] blob.data; 2175 delete[] blob.data;
2176 } 2176 }
2177 2177
2178 TEST(SerializationMemoryStats) { 2178 TEST(SerializationMemoryStats) {
2179 FLAG_profile_deserialization = true; 2179 FLAG_profile_deserialization = true;
2180 FLAG_always_opt = false; 2180 FLAG_always_opt = false;
2181 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); 2181 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob();
2182 delete[] blob.data; 2182 delete[] blob.data;
2183 } 2183 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698