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

Side by Side Diff: src/heap-symbols.h

Issue 2080243003: Use instance type in Object.prototype.toString(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add TODO comment about checking IsArray() before reading toStringTag. Created 4 years, 5 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
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_HEAP_SYMBOLS_H_ 5 #ifndef V8_HEAP_SYMBOLS_H_
6 #define V8_HEAP_SYMBOLS_H_ 6 #define V8_HEAP_SYMBOLS_H_
7 7
8 #define INTERNALIZED_STRING_LIST(V) \ 8 #define INTERNALIZED_STRING_LIST(V) \
9 V(anonymous_string, "anonymous") \ 9 V(anonymous_string, "anonymous") \
10 V(apply_string, "apply") \ 10 V(apply_string, "apply") \
11 V(assign_string, "assign") \ 11 V(assign_string, "assign") \
12 V(arguments_string, "arguments") \ 12 V(arguments_string, "arguments") \
13 V(Arguments_string, "Arguments") \ 13 V(Arguments_string, "Arguments") \
14 V(Array_string, "Array") \ 14 V(Array_string, "Array") \
15 V(arguments_to_string, "[object Arguments]") \
15 V(array_to_string, "[object Array]") \ 16 V(array_to_string, "[object Array]") \
17 V(boolean_to_string, "[object Boolean]") \
18 V(date_to_string, "[object Date]") \
19 V(error_to_string, "[object Error]") \
20 V(function_to_string, "[object Function]") \
21 V(number_to_string, "[object Number]") \
16 V(object_to_string, "[object Object]") \ 22 V(object_to_string, "[object Object]") \
23 V(regexp_to_string, "[object RegExp]") \
17 V(string_to_string, "[object String]") \ 24 V(string_to_string, "[object String]") \
18 V(function_to_string, "[object Function]") \
19 V(bind_string, "bind") \ 25 V(bind_string, "bind") \
20 V(bool16x8_string, "bool16x8") \ 26 V(bool16x8_string, "bool16x8") \
21 V(Bool16x8_string, "Bool16x8") \ 27 V(Bool16x8_string, "Bool16x8") \
22 V(bool32x4_string, "bool32x4") \ 28 V(bool32x4_string, "bool32x4") \
23 V(Bool32x4_string, "Bool32x4") \ 29 V(Bool32x4_string, "Bool32x4") \
24 V(bool8x16_string, "bool8x16") \ 30 V(bool8x16_string, "bool8x16") \
25 V(Bool8x16_string, "Bool8x16") \ 31 V(Bool8x16_string, "Bool8x16") \
26 V(boolean_string, "boolean") \ 32 V(boolean_string, "boolean") \
27 V(Boolean_string, "Boolean") \ 33 V(Boolean_string, "Boolean") \
28 V(bound__string, "bound ") \ 34 V(bound__string, "bound ") \
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Well-Known Symbols are "Public" symbols, which have a bit set which causes 209 // Well-Known Symbols are "Public" symbols, which have a bit set which causes
204 // them to produce an undefined value when a load results in a failed access 210 // them to produce an undefined value when a load results in a failed access
205 // check. Because this behaviour is not specified properly as of yet, it only 211 // check. Because this behaviour is not specified properly as of yet, it only
206 // applies to a subset of spec-defined Well-Known Symbols. 212 // applies to a subset of spec-defined Well-Known Symbols.
207 #define WELL_KNOWN_SYMBOL_LIST(V) \ 213 #define WELL_KNOWN_SYMBOL_LIST(V) \
208 V(has_instance_symbol, Symbol.hasInstance) \ 214 V(has_instance_symbol, Symbol.hasInstance) \
209 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ 215 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \
210 V(to_string_tag_symbol, Symbol.toStringTag) 216 V(to_string_tag_symbol, Symbol.toStringTag)
211 217
212 #endif // V8_HEAP_SYMBOLS_H_ 218 #endif // V8_HEAP_SYMBOLS_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698