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

Unified Diff: src/snapshot/serialize.cc

Issue 1404553003: Serializer: remove unused --serialize-inner flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/snapshot/serialize.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/serialize.cc
diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc
index 7549ffe7152dcd858033b2e019c2a949fe34a47f..51892de3eb1a1a1f84c0f58e511c0b37440b7958 100644
--- a/src/snapshot/serialize.cc
+++ b/src/snapshot/serialize.cc
@@ -2422,7 +2422,7 @@ ScriptData* CodeSerializer::Serialize(Isolate* isolate,
// Serialize code object.
SnapshotByteSink sink(info->code()->CodeSize() * 2);
- CodeSerializer cs(isolate, &sink, *source, info->code());
+ CodeSerializer cs(isolate, &sink, *source);
DisallowHeapAllocation no_gc;
Object** location = Handle<Object>::cast(info).location();
cs.VisitPointer(location);
@@ -2476,14 +2476,7 @@ void CodeSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code,
return;
case Code::FUNCTION:
DCHECK(code_object->has_reloc_info_for_serialization());
- // Only serialize the code for the toplevel function unless specified
- // by flag. Replace code of inner functions by the lazy compile builtin.
- // This is safe, as checked in Compiler::GetSharedFunctionInfo.
- if (code_object != main_code_ && !FLAG_serialize_inner) {
- SerializeBuiltin(Builtins::kCompileLazy, how_to_code, where_to_point);
- } else {
- SerializeGeneric(code_object, how_to_code, where_to_point);
- }
+ SerializeGeneric(code_object, how_to_code, where_to_point);
return;
case Code::WASM_FUNCTION:
UNREACHABLE();
« no previous file with comments | « src/snapshot/serialize.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698