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

Unified Diff: src/factory.cc

Issue 1433923002: Maintain a FixedArray for the optimized code map. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug/debug.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 266ecff1d3f16ce00ebcc500f23f8cb5d72b6f29..fc170d2e1cb49dc4cb832f86b3c3a34b67730dd5 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2071,7 +2071,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
code = handle(isolate()->builtins()->builtin(Builtins::kIllegal));
}
share->set_code(*code);
- share->set_optimized_code_map(Smi::FromInt(0));
+ share->set_optimized_code_map(*cleared_optimized_code_map());
share->set_scope_info(ScopeInfo::Empty(isolate()));
Code* construct_stub =
isolate()->builtins()->builtin(Builtins::kJSConstructStubGeneric);
« no previous file with comments | « src/debug/debug.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698