Ignore:
Timestamp:
Oct 9, 2015, 4:17:59 PM (10 years ago)
Author:
[email protected]
Message:

No need to keep setting needsVisit flag in SmallStrings
https://bugs.webkit.org/show_bug.cgi?id=149961

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-10-09
Reviewed by Andreas Kling.

SmallStrings are all initialized at once privately before the VM
enables Garbage Collection. There is no need to keep updating
this flag, as it couldn't have changed.

  • runtime/SmallStrings.cpp:

(JSC::SmallStrings::createEmptyString):
(JSC::SmallStrings::createSingleCharacterString):
(JSC::SmallStrings::initialize):

  • runtime/SmallStrings.h:
File:
1 edited

Legend:

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

    r183724 r190829  
    4949namespace JSC {
    5050
    51 class HeapRootVisitor;
    5251class VM;
    5352class JSString;
     
    124123    static const unsigned singleCharacterStringCount = maxSingleCharacterString + 1;
    125124
    126     JS_EXPORT_PRIVATE void createEmptyString(VM*);
    127     JS_EXPORT_PRIVATE void createSingleCharacterString(VM*, unsigned char);
     125    void createEmptyString(VM*);
     126    void createSingleCharacterString(VM*, unsigned char);
    128127
    129128    void initialize(VM*, JSString*&, const char* value);
Note: See TracChangeset for help on using the changeset viewer.