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

Unified Diff: src/json-parser.h

Issue 1704353002: [runtime] Force internalize names used before lookup in in DescriptorArray and TransitionArray (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 | « src/heap/heap-inl.h ('k') | src/lookup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json-parser.h
diff --git a/src/json-parser.h b/src/json-parser.h
index 5944428104a3c9028d87f4561d08b8cce42c4ae5..efd3c04b98f7e323a79076e5672df745c9611810 100644
--- a/src/json-parser.h
+++ b/src/json-parser.h
@@ -128,7 +128,9 @@ class JsonParser BASE_EMBEDDED {
}
Handle<String> ParseJsonInternalizedString() {
- return ScanJsonString<true>();
+ Handle<String> result = ScanJsonString<true>();
+ if (result.is_null()) return result;
+ return factory()->InternalizeString(result);
}
template <bool is_internalized>
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/lookup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698