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

Side by Side Diff: src/ast/ast-types.cc

Issue 2549773002: Internalize strings in-place (Closed)
Patch Set: fix performance Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <iomanip> 5 #include <iomanip>
6 6
7 #include "src/ast/ast-types.h" 7 #include "src/ast/ast-types.h"
8 8
9 #include "src/handles-inl.h" 9 #include "src/handles-inl.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return kNone; 150 return kNone;
151 } 151 }
152 152
153 AstType::bitset AstBitsetType::Lub(i::Map* map) { 153 AstType::bitset AstBitsetType::Lub(i::Map* map) {
154 DisallowHeapAllocation no_allocation; 154 DisallowHeapAllocation no_allocation;
155 switch (map->instance_type()) { 155 switch (map->instance_type()) {
156 case STRING_TYPE: 156 case STRING_TYPE:
157 case ONE_BYTE_STRING_TYPE: 157 case ONE_BYTE_STRING_TYPE:
158 case CONS_STRING_TYPE: 158 case CONS_STRING_TYPE:
159 case CONS_ONE_BYTE_STRING_TYPE: 159 case CONS_ONE_BYTE_STRING_TYPE:
160 case THIN_STRING_TYPE:
161 case THIN_ONE_BYTE_STRING_TYPE:
160 case SLICED_STRING_TYPE: 162 case SLICED_STRING_TYPE:
161 case SLICED_ONE_BYTE_STRING_TYPE: 163 case SLICED_ONE_BYTE_STRING_TYPE:
162 case EXTERNAL_STRING_TYPE: 164 case EXTERNAL_STRING_TYPE:
163 case EXTERNAL_ONE_BYTE_STRING_TYPE: 165 case EXTERNAL_ONE_BYTE_STRING_TYPE:
164 case EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE: 166 case EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE:
165 case SHORT_EXTERNAL_STRING_TYPE: 167 case SHORT_EXTERNAL_STRING_TYPE:
166 case SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE: 168 case SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE:
167 case SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE: 169 case SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE:
168 return kOtherString; 170 return kOtherString;
169 case INTERNALIZED_STRING_TYPE: 171 case INTERNALIZED_STRING_TYPE:
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 #undef CONSTRUCT_SIMD_TYPE 1306 #undef CONSTRUCT_SIMD_TYPE
1305 1307
1306 // ----------------------------------------------------------------------------- 1308 // -----------------------------------------------------------------------------
1307 // Instantiations. 1309 // Instantiations.
1308 1310
1309 template class AstType::Iterator<i::Map>; 1311 template class AstType::Iterator<i::Map>;
1310 template class AstType::Iterator<i::Object>; 1312 template class AstType::Iterator<i::Object>;
1311 1313
1312 } // namespace internal 1314 } // namespace internal
1313 } // namespace v8 1315 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698