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

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

Issue 1424113003: Introduce string/regexp related public symbols. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 V(promise_on_reject_symbol) \ 347 V(promise_on_reject_symbol) \
348 V(promise_raw_symbol) \ 348 V(promise_raw_symbol) \
349 V(promise_status_symbol) \ 349 V(promise_status_symbol) \
350 V(promise_value_symbol) \ 350 V(promise_value_symbol) \
351 V(sealed_symbol) \ 351 V(sealed_symbol) \
352 V(stack_trace_symbol) \ 352 V(stack_trace_symbol) \
353 V(string_iterator_iterated_string_symbol) \ 353 V(string_iterator_iterated_string_symbol) \
354 V(string_iterator_next_index_symbol) \ 354 V(string_iterator_next_index_symbol) \
355 V(uninitialized_symbol) 355 V(uninitialized_symbol)
356 356
357 #define PUBLIC_SYMBOL_LIST(V) \ 357 #define PUBLIC_SYMBOL_LIST(V) \
358 V(has_instance_symbol, Symbol.hasInstance) \ 358 V(has_instance_symbol, Symbol.hasInstance) \
359 V(is_regexp_symbol, Symbol.isRegExp) \ 359 V(is_regexp_symbol, Symbol.isRegExp) \
360 V(iterator_symbol, Symbol.iterator) \ 360 V(iterator_symbol, Symbol.iterator) \
361 V(to_primitive_symbol, Symbol.toPrimitive) \ 361 V(match_symbol, Symbol.match) \
362 V(to_string_tag_symbol, Symbol.toStringTag) \ 362 V(replace_symbol, Symbol.replace) \
363 V(search_symbol, Symbol.search) \
364 V(split_symbol, Symbol.split) \
365 V(to_primitive_symbol, Symbol.toPrimitive) \
366 V(to_string_tag_symbol, Symbol.toStringTag) \
363 V(unscopables_symbol, Symbol.unscopables) 367 V(unscopables_symbol, Symbol.unscopables)
364 368
365 // Well-Known Symbols are "Public" symbols, which have a bit set which causes 369 // Well-Known Symbols are "Public" symbols, which have a bit set which causes
366 // them to produce an undefined value when a load results in a failed access 370 // them to produce an undefined value when a load results in a failed access
367 // check. Because this behaviour is not specified properly as of yet, it only 371 // check. Because this behaviour is not specified properly as of yet, it only
368 // applies to a subset of spec-defined Well-Known Symbols. 372 // applies to a subset of spec-defined Well-Known Symbols.
369 #define WELL_KNOWN_SYMBOL_LIST(V) \ 373 #define WELL_KNOWN_SYMBOL_LIST(V) \
370 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable) 374 V(is_concat_spreadable_symbol, Symbol.isConcatSpreadable)
371 375
372 // Heap roots that are known to be immortal immovable, for which we can safely 376 // Heap roots that are known to be immortal immovable, for which we can safely
(...skipping 2350 matching lines...) Expand 10 before | Expand all | Expand 10 after
2723 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2727 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2724 2728
2725 private: 2729 private:
2726 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2730 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2727 }; 2731 };
2728 #endif // DEBUG 2732 #endif // DEBUG
2729 } // namespace internal 2733 } // namespace internal
2730 } // namespace v8 2734 } // namespace v8
2731 2735
2732 #endif // V8_HEAP_HEAP_H_ 2736 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/js/symbol.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698