| Index: src/objects.h
|
| ===================================================================
|
| --- src/objects.h (revision 1380)
|
| +++ src/objects.h (working copy)
|
| @@ -2941,11 +2941,10 @@
|
| public:
|
| // Meaning of Type:
|
| // NOT_COMPILED: Initial value. No data has been stored in the JSRegExp yet.
|
| - // JSCRE: A complex RegExp for JSCRE
|
| // ATOM: A simple string to match against using an indexOf operation.
|
| // IRREGEXP: Compiled with Irregexp.
|
| // IRREGEXP_NATIVE: Compiled to native code with Irregexp.
|
| - enum Type { NOT_COMPILED, JSCRE, ATOM, IRREGEXP };
|
| + enum Type { NOT_COMPILED, ATOM, IRREGEXP };
|
| enum Flag { NONE = 0, GLOBAL = 1, IGNORE_CASE = 2, MULTILINE = 4 };
|
|
|
| class Flags {
|
| @@ -2979,10 +2978,9 @@
|
| static const int kTagIndex = 0;
|
| static const int kSourceIndex = kTagIndex + 1;
|
| static const int kFlagsIndex = kSourceIndex + 1;
|
| - // These three are the same since the same entry is shared for
|
| + // These two are the same since the same entry is shared for
|
| // different purposes in different types of regexps.
|
| static const int kAtomPatternIndex = kFlagsIndex + 1;
|
| - static const int kJscreDataIndex = kFlagsIndex + 1;
|
| static const int kIrregexpDataIndex = kFlagsIndex + 1;
|
| static const int kDataSize = kAtomPatternIndex + 1;
|
| };
|
| @@ -2992,8 +2990,10 @@
|
| public:
|
| // Find cached value for a string key, otherwise return null.
|
| Object* Lookup(String* src);
|
| + Object* LookupEval(String* src, Context* context);
|
| Object* LookupRegExp(String* source, JSRegExp::Flags flags);
|
| Object* Put(String* src, Object* value);
|
| + Object* PutEval(String* src, Context* context, Object* value);
|
| Object* PutRegExp(String* src, JSRegExp::Flags flags, FixedArray* value);
|
|
|
| static inline CompilationCacheTable* cast(Object* obj);
|
|
|