| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2987 static const int kJscreDataIndex = kFlagsIndex + 1; | 2987 static const int kJscreDataIndex = kFlagsIndex + 1; |
| 2988 static const int kIrregexpDataIndex = kFlagsIndex + 1; | 2988 static const int kIrregexpDataIndex = kFlagsIndex + 1; |
| 2989 static const int kDataSize = kAtomPatternIndex + 1; | 2989 static const int kDataSize = kAtomPatternIndex + 1; |
| 2990 }; | 2990 }; |
| 2991 | 2991 |
| 2992 | 2992 |
| 2993 class CompilationCacheTable: public HashTable<0, 2> { | 2993 class CompilationCacheTable: public HashTable<0, 2> { |
| 2994 public: | 2994 public: |
| 2995 // Find cached value for a string key, otherwise return null. | 2995 // Find cached value for a string key, otherwise return null. |
| 2996 Object* Lookup(String* src); | 2996 Object* Lookup(String* src); |
| 2997 Object* LookupEval(String* src, Context* context); |
| 2997 Object* LookupRegExp(String* source, JSRegExp::Flags flags); | 2998 Object* LookupRegExp(String* source, JSRegExp::Flags flags); |
| 2998 Object* Put(String* src, Object* value); | 2999 Object* Put(String* src, Object* value); |
| 3000 Object* PutEval(String* src, Context* context, Object* value); |
| 2999 Object* PutRegExp(String* src, JSRegExp::Flags flags, FixedArray* value); | 3001 Object* PutRegExp(String* src, JSRegExp::Flags flags, FixedArray* value); |
| 3000 | 3002 |
| 3001 static inline CompilationCacheTable* cast(Object* obj); | 3003 static inline CompilationCacheTable* cast(Object* obj); |
| 3002 | 3004 |
| 3003 private: | 3005 private: |
| 3004 DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheTable); | 3006 DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheTable); |
| 3005 }; | 3007 }; |
| 3006 | 3008 |
| 3007 | 3009 |
| 3008 enum AllowNullsFlag {ALLOW_NULLS, DISALLOW_NULLS}; | 3010 enum AllowNullsFlag {ALLOW_NULLS, DISALLOW_NULLS}; |
| (...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4238 } else { | 4240 } else { |
| 4239 value &= ~(1 << bit_position); | 4241 value &= ~(1 << bit_position); |
| 4240 } | 4242 } |
| 4241 return value; | 4243 return value; |
| 4242 } | 4244 } |
| 4243 }; | 4245 }; |
| 4244 | 4246 |
| 4245 } } // namespace v8::internal | 4247 } } // namespace v8::internal |
| 4246 | 4248 |
| 4247 #endif // V8_OBJECTS_H_ | 4249 #endif // V8_OBJECTS_H_ |
| OLD | NEW |