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

Side by Side Diff: src/objects.cc

Issue 471923002: Purge unused internalized string accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/runtime.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 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
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
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
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698