OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/allocation-site-scopes.h" | 8 #include "src/allocation-site-scopes.h" |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1732 } | 1732 } |
1733 | 1733 |
1734 | 1734 |
1735 void HeapNumber::HeapNumberPrint(OStream& os) { // NOLINT | 1735 void HeapNumber::HeapNumberPrint(OStream& os) { // NOLINT |
1736 os << value(); | 1736 os << value(); |
1737 } | 1737 } |
1738 | 1738 |
1739 | 1739 |
1740 String* JSReceiver::class_name() { | 1740 String* JSReceiver::class_name() { |
1741 if (IsJSFunction() || IsJSFunctionProxy()) { | 1741 if (IsJSFunction() || IsJSFunctionProxy()) { |
1742 return GetHeap()->function_class_string(); | 1742 return GetHeap()->Function_string(); |
1743 } | 1743 } |
1744 if (map()->constructor()->IsJSFunction()) { | 1744 if (map()->constructor()->IsJSFunction()) { |
1745 JSFunction* constructor = JSFunction::cast(map()->constructor()); | 1745 JSFunction* constructor = JSFunction::cast(map()->constructor()); |
1746 return String::cast(constructor->shared()->instance_class_name()); | 1746 return String::cast(constructor->shared()->instance_class_name()); |
1747 } | 1747 } |
1748 // If the constructor is not present, return "Object". | 1748 // If the constructor is not present, return "Object". |
1749 return GetHeap()->Object_string(); | 1749 return GetHeap()->Object_string(); |
1750 } | 1750 } |
1751 | 1751 |
1752 | 1752 |
(...skipping 15176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16929 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16929 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16930 static const char* error_messages_[] = { | 16930 static const char* error_messages_[] = { |
16931 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16931 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16932 }; | 16932 }; |
16933 #undef ERROR_MESSAGES_TEXTS | 16933 #undef ERROR_MESSAGES_TEXTS |
16934 return error_messages_[reason]; | 16934 return error_messages_[reason]; |
16935 } | 16935 } |
16936 | 16936 |
16937 | 16937 |
16938 } } // namespace v8::internal | 16938 } } // namespace v8::internal |
OLD | NEW |