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

Unified Diff: src/heap.cc

Issue 8677006: Recommit introducing short external strings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixing webkit failures. Created 9 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/heap.h ('k') | src/heap-inl.h » ('j') | src/ia32/codegen-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 8aa75804f61942169b49a23d24127748713ef6e7..02b4ca11bde91d816f8d6dfcb24bb5dcc9092a86 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -3997,6 +3997,15 @@ Map* Heap::SymbolMapForString(String* string) {
if (map == external_string_with_ascii_data_map()) {
return external_symbol_with_ascii_data_map();
}
+ if (map == short_external_string_map()) {
+ return short_external_symbol_map();
+ }
+ if (map == short_external_ascii_string_map()) {
+ return short_external_ascii_symbol_map();
+ }
+ if (map == short_external_string_with_ascii_data_map()) {
+ return short_external_symbol_with_ascii_data_map();
+ }
// No match found.
return NULL;
« no previous file with comments | « src/heap.h ('k') | src/heap-inl.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698