Changeset 27702 in webkit for trunk/JavaScriptCore/kjs/nodes.h
- Timestamp:
- Nov 11, 2007, 8:27:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.h
r27695 r27702 29 29 #include "Parser.h" 30 30 #include "internal.h" 31 #include "RegExp.h" 31 32 #include "SymbolTable.h" 32 33 #include <wtf/ListRefPtr.h> … … 271 272 public: 272 273 RegExpNode(const UString& pattern, const UString& flags) KJS_FAST_CALL 273 : m_pattern(pattern), m_flags(flags) { } 274 virtual JSValue* evaluate(ExecState*) KJS_FAST_CALL; 274 : m_regExp(new RegExp(pattern, flags)) 275 { 276 } 277 JSValue* evaluate(ExecState*) KJS_FAST_CALL; 275 278 virtual void streamTo(SourceStream&) const KJS_FAST_CALL; 276 279 virtual Precedence precedence() const { return PrecPrimary; } 277 280 private: 278 UString m_pattern; 279 UString m_flags; 281 RefPtr<RegExp> m_regExp; 280 282 }; 281 283
Note:
See TracChangeset
for help on using the changeset viewer.