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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap-symbols.h
diff --git a/src/heap-symbols.h b/src/heap-symbols.h
index 178647307a033bf811b2b8ddf4300c74f530dff3..03b25ee882b0bcb07542c91a8b9152475107c74a 100644
--- a/src/heap-symbols.h
+++ b/src/heap-symbols.h
@@ -12,10 +12,16 @@
V(arguments_string, "arguments") \
V(Arguments_string, "Arguments") \
V(Array_string, "Array") \
+ V(arguments_to_string, "[object Arguments]") \
V(array_to_string, "[object Array]") \
+ V(boolean_to_string, "[object Boolean]") \
+ V(date_to_string, "[object Date]") \
+ V(error_to_string, "[object Error]") \
+ V(function_to_string, "[object Function]") \
+ V(number_to_string, "[object Number]") \
V(object_to_string, "[object Object]") \
+ V(regexp_to_string, "[object RegExp]") \
V(string_to_string, "[object String]") \
- V(function_to_string, "[object Function]") \
V(bind_string, "bind") \
V(bool16x8_string, "bool16x8") \
V(Bool16x8_string, "Bool16x8") \
« 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