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

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

Issue 1683043003: Implement symbol @@hasInstance for ES6 instanceof support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix broken test. 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 unified diff | Download patch
« no previous file with comments | « src/builtins.cc ('k') | src/js/symbol.js » ('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") \
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 V(promise_value_symbol) \ 174 V(promise_value_symbol) \
175 V(sealed_symbol) \ 175 V(sealed_symbol) \
176 V(stack_trace_symbol) \ 176 V(stack_trace_symbol) \
177 V(strict_function_transition_symbol) \ 177 V(strict_function_transition_symbol) \
178 V(string_iterator_iterated_string_symbol) \ 178 V(string_iterator_iterated_string_symbol) \
179 V(string_iterator_next_index_symbol) \ 179 V(string_iterator_next_index_symbol) \
180 V(strong_function_transition_symbol) \ 180 V(strong_function_transition_symbol) \
181 V(uninitialized_symbol) 181 V(uninitialized_symbol)
182 182
183 #define PUBLIC_SYMBOL_LIST(V) \ 183 #define PUBLIC_SYMBOL_LIST(V) \
184 V(has_instance_symbol, Symbol.hasInstance) \
185 V(iterator_symbol, Symbol.iterator) \ 184 V(iterator_symbol, Symbol.iterator) \
186 V(match_symbol, Symbol.match) \ 185 V(match_symbol, Symbol.match) \
187 V(replace_symbol, Symbol.replace) \ 186 V(replace_symbol, Symbol.replace) \
188 V(search_symbol, Symbol.search) \ 187 V(search_symbol, Symbol.search) \
189 V(species_symbol, Symbol.species) \ 188 V(species_symbol, Symbol.species) \
190 V(split_symbol, Symbol.split) \ 189 V(split_symbol, Symbol.split) \
191 V(to_primitive_symbol, Symbol.toPrimitive) \ 190 V(to_primitive_symbol, Symbol.toPrimitive) \
192 V(unscopables_symbol, Symbol.unscopables) 191 V(unscopables_symbol, Symbol.unscopables)
193 192
194 // Well-Known Symbols are "Public" symbols, which have a bit set which causes 193 // Well-Known Symbols are "Public" symbols, which have a bit set which causes
195 // them to produce an undefined value when a load results in a failed access 194 // them to produce an undefined value when a load results in a failed access
196 // check. Because this behaviour is not specified properly as of yet, it only 195 // check. Because this behaviour is not specified properly as of yet, it only
197 // applies to a subset of spec-defined Well-Known Symbols. 196 // applies to a subset of spec-defined Well-Known Symbols.
198 #define WELL_KNOWN_SYMBOL_LIST(V) \ 197 #define WELL_KNOWN_SYMBOL_LIST(V) \
198 V(has_instance_symbol, Symbol.hasInstance) \
199 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \ 199 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) \
200 V(to_string_tag_symbol, Symbol.toStringTag) 200 V(to_string_tag_symbol, Symbol.toStringTag)
201 201
202 #endif // V8_HEAP_SYMBOLS_H_ 202 #endif // V8_HEAP_SYMBOLS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/js/symbol.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698