Ignore:
Timestamp:
Sep 4, 2014, 12:10:36 PM (11 years ago)
Author:
[email protected]
Message:

Fixed indentations and some style warnings in JavaScriptCore/runtime.
<https://webkit.org/b/136518>

Reviewed by Michael Saboff.

Also removed some superflous spaces. There are no semantic changes.

  • runtime/Completion.h:
  • runtime/ConstructData.h:
  • runtime/DateConstructor.h:
  • runtime/DateInstance.h:
  • runtime/DateInstanceCache.h:
  • runtime/DatePrototype.h:
  • runtime/Error.h:
  • runtime/ErrorConstructor.h:
  • runtime/ErrorInstance.h:
  • runtime/ErrorPrototype.h:
  • runtime/FunctionConstructor.h:
  • runtime/FunctionPrototype.h:
  • runtime/GetterSetter.h:
  • runtime/Identifier.h:
  • runtime/InitializeThreading.h:
  • runtime/InternalFunction.h:
  • runtime/JSAPIValueWrapper.h:
  • runtime/JSFunction.h:
  • runtime/JSLock.h:
  • runtime/JSNotAnObject.h:
  • runtime/JSONObject.h:
  • runtime/JSString.h:
  • runtime/JSTypeInfo.h:
  • runtime/JSWrapperObject.h:
  • runtime/Lookup.h:
  • runtime/MathObject.h:
  • runtime/NativeErrorConstructor.h:
  • runtime/NativeErrorPrototype.h:
  • runtime/NumberConstructor.h:
  • runtime/NumberObject.h:
  • runtime/NumberPrototype.h:
  • runtime/NumericStrings.h:
  • runtime/ObjectConstructor.h:
  • runtime/ObjectPrototype.h:
  • runtime/PropertyDescriptor.h:
  • runtime/Protect.h:
  • runtime/PutPropertySlot.h:
  • runtime/RegExp.h:
  • runtime/RegExpCachedResult.h:
  • runtime/RegExpConstructor.h:
  • runtime/RegExpMatchesArray.h:
  • runtime/RegExpObject.h:
  • runtime/RegExpPrototype.h:
  • runtime/SmallStrings.h:
  • runtime/StringConstructor.h:
  • runtime/StringObject.h:
  • runtime/StringPrototype.h:
  • runtime/StructureChain.h:
  • runtime/VM.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/SmallStrings.h

    r169316 r173269  
    4848namespace JSC {
    4949
    50     class HeapRootVisitor;
    51     class VM;
    52     class JSString;
    53     class SmallStringsStorage;
    54     class SlotVisitor;
     50class HeapRootVisitor;
     51class VM;
     52class JSString;
     53class SmallStringsStorage;
     54class SlotVisitor;
    5555
    56     static const unsigned maxSingleCharacterString = 0xFF;
     56static const unsigned maxSingleCharacterString = 0xFF;
    5757
    58     class SmallStrings {
    59         WTF_MAKE_NONCOPYABLE(SmallStrings);
    60     public:
    61         SmallStrings();
    62         ~SmallStrings();
     58class SmallStrings {
     59    WTF_MAKE_NONCOPYABLE(SmallStrings);
     60public:
     61    SmallStrings();
     62    ~SmallStrings();
    6363
    64         JSString* emptyString()
    65         {
    66             return m_emptyString;
    67         }
     64    JSString* emptyString()
     65    {
     66        return m_emptyString;
     67    }
    6868
    69         JSString* singleCharacterString(unsigned char character)
    70         {
    71             return m_singleCharacterStrings[character];
    72         }
     69    JSString* singleCharacterString(unsigned char character)
     70    {
     71        return m_singleCharacterStrings[character];
     72    }
    7373
    74         JS_EXPORT_PRIVATE WTF::StringImpl* singleCharacterStringRep(unsigned char character);
     74    JS_EXPORT_PRIVATE WTF::StringImpl* singleCharacterStringRep(unsigned char character);
    7575
    76         JSString** singleCharacterStrings() { return &m_singleCharacterStrings[0]; }
     76    JSString** singleCharacterStrings() { return &m_singleCharacterStrings[0]; }
    7777
    78         void initializeCommonStrings(VM&);
    79         void visitStrongReferences(SlotVisitor&);
     78    void initializeCommonStrings(VM&);
     79    void visitStrongReferences(SlotVisitor&);
    8080
    8181#define JSC_COMMON_STRINGS_ACCESSOR_DEFINITION(name) \
    82         JSString* name##String() const \
    83         { \
    84             return m_##name; \
    85         }
    86         JSC_COMMON_STRINGS_EACH_NAME(JSC_COMMON_STRINGS_ACCESSOR_DEFINITION)
     82    JSString* name##String() const                  \
     83    {                                                \
     84        return m_##name;                            \
     85    }
     86    JSC_COMMON_STRINGS_EACH_NAME(JSC_COMMON_STRINGS_ACCESSOR_DEFINITION)
    8787#undef JSC_COMMON_STRINGS_ACCESSOR_DEFINITION
    8888
    89         JSString* nullObjectString() const { return m_nullObjectString; }
    90         JSString* undefinedObjectString() const { return m_undefinedObjectString; }
     89    JSString* nullObjectString() const { return m_nullObjectString; }
     90    JSString* undefinedObjectString() const { return m_undefinedObjectString; }
    9191
    92     private:
    93         static const unsigned singleCharacterStringCount = maxSingleCharacterString + 1;
     92private:
     93    static const unsigned singleCharacterStringCount = maxSingleCharacterString + 1;
    9494
    95         JS_EXPORT_PRIVATE void createEmptyString(VM*);
    96         JS_EXPORT_PRIVATE void createSingleCharacterString(VM*, unsigned char);
     95    JS_EXPORT_PRIVATE void createEmptyString(VM*);
     96    JS_EXPORT_PRIVATE void createSingleCharacterString(VM*, unsigned char);
    9797
    98         void initialize(VM* vm, JSString*& string, const char* value) const;
     98    void initialize(VM*, JSString*&, const char* value) const;
    9999
    100         JSString* m_emptyString;
     100    JSString* m_emptyString;
    101101#define JSC_COMMON_STRINGS_ATTRIBUTE_DECLARATION(name) JSString* m_##name;
    102         JSC_COMMON_STRINGS_EACH_NAME(JSC_COMMON_STRINGS_ATTRIBUTE_DECLARATION)
     102    JSC_COMMON_STRINGS_EACH_NAME(JSC_COMMON_STRINGS_ATTRIBUTE_DECLARATION)
    103103#undef JSC_COMMON_STRINGS_ATTRIBUTE_DECLARATION
    104         JSString* m_nullObjectString;
    105         JSString* m_undefinedObjectString;
    106         JSString* m_singleCharacterStrings[singleCharacterStringCount];
    107         OwnPtr<SmallStringsStorage> m_storage;
    108     };
     104    JSString* m_nullObjectString;
     105    JSString* m_undefinedObjectString;
     106    JSString* m_singleCharacterStrings[singleCharacterStringCount];
     107    OwnPtr<SmallStringsStorage> m_storage;
     108};
    109109
    110110} // namespace JSC
Note: See TracChangeset for help on using the changeset viewer.