Changeset 183724 in webkit for trunk/Source/JavaScriptCore/runtime/SmallStrings.h
- Timestamp:
- May 2, 2015, 5:15:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/SmallStrings.h
r179429 r183724 1 1 /* 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved.2 * Copyright (C) 2008, 2009, 2015 Apple Inc. All Rights Reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 27 27 #define SmallStrings_h 28 28 29 #include "TypeofType.h" 29 30 #include "WriteBarrier.h" 30 31 #include <wtf/Noncopyable.h> … … 86 87 JSC_COMMON_STRINGS_EACH_NAME(JSC_COMMON_STRINGS_ACCESSOR_DEFINITION) 87 88 #undef JSC_COMMON_STRINGS_ACCESSOR_DEFINITION 89 90 JSString* typeString(TypeofType type) const 91 { 92 switch (type) { 93 case TypeofType::Undefined: 94 return undefinedString(); 95 case TypeofType::Boolean: 96 return booleanString(); 97 case TypeofType::Number: 98 return numberString(); 99 case TypeofType::String: 100 return stringString(); 101 case TypeofType::Symbol: 102 return symbolString(); 103 case TypeofType::Object: 104 return objectString(); 105 case TypeofType::Function: 106 return functionString(); 107 } 108 109 RELEASE_ASSERT_NOT_REACHED(); 110 return nullptr; 111 } 88 112 89 113 JSString* nullObjectString() const { return m_nullObjectString; }
Note:
See TracChangeset
for help on using the changeset viewer.