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

Unified Diff: src/factory.cc

Issue 1686193003: Force SharedFunctionInfo::name() to be a flat string (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | test/mjsunit/regress/regress-4659.js » ('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 1a3a007a8536c7b3188affcca5c6fb115c60998a..737530f0368e8449e67f9df2bee4746b1d4194ed 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -2116,6 +2116,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
Handle<SharedFunctionInfo> share = New<SharedFunctionInfo>(map, OLD_SPACE);
// Set pointer fields.
+ name = String::Flatten(name, TENURED);
share->set_name(*name);
Handle<Code> code;
if (!maybe_code.ToHandle(&code)) {
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-4659.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698