| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 7845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7856 static const int kEntrySize = 2; | 7856 static const int kEntrySize = 2; |
| 7857 }; | 7857 }; |
| 7858 | 7858 |
| 7859 | 7859 |
| 7860 class CompilationCacheTable: public HashTable<CompilationCacheTable, | 7860 class CompilationCacheTable: public HashTable<CompilationCacheTable, |
| 7861 CompilationCacheShape, | 7861 CompilationCacheShape, |
| 7862 HashTableKey*> { | 7862 HashTableKey*> { |
| 7863 public: | 7863 public: |
| 7864 // Find cached value for a string key, otherwise return null. | 7864 // Find cached value for a string key, otherwise return null. |
| 7865 Handle<Object> Lookup(Handle<String> src, Handle<Context> context); | 7865 Handle<Object> Lookup(Handle<String> src, Handle<Context> context); |
| 7866 Handle<Object> LookupEval(Handle<String> src, Handle<Context> context, | 7866 Handle<Object> LookupEval(Handle<String> src, |
| 7867 StrictMode strict_mode, int scope_position); | 7867 Handle<SharedFunctionInfo> shared, |
| 7868 StrictMode strict_mode, int scope_position); |
| 7868 Handle<Object> LookupRegExp(Handle<String> source, JSRegExp::Flags flags); | 7869 Handle<Object> LookupRegExp(Handle<String> source, JSRegExp::Flags flags); |
| 7869 static Handle<CompilationCacheTable> Put( | 7870 static Handle<CompilationCacheTable> Put( |
| 7870 Handle<CompilationCacheTable> cache, Handle<String> src, | 7871 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 7871 Handle<Context> context, Handle<Object> value); | 7872 Handle<Context> context, Handle<Object> value); |
| 7872 static Handle<CompilationCacheTable> PutEval( | 7873 static Handle<CompilationCacheTable> PutEval( |
| 7873 Handle<CompilationCacheTable> cache, Handle<String> src, | 7874 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 7874 Handle<Context> context, Handle<SharedFunctionInfo> value, | 7875 Handle<SharedFunctionInfo> context, Handle<SharedFunctionInfo> value, |
| 7875 int scope_position); | 7876 int scope_position); |
| 7876 static Handle<CompilationCacheTable> PutRegExp( | 7877 static Handle<CompilationCacheTable> PutRegExp( |
| 7877 Handle<CompilationCacheTable> cache, Handle<String> src, | 7878 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 7878 JSRegExp::Flags flags, Handle<FixedArray> value); | 7879 JSRegExp::Flags flags, Handle<FixedArray> value); |
| 7879 void Remove(Object* value); | 7880 void Remove(Object* value); |
| 7880 | 7881 |
| 7881 DECLARE_CAST(CompilationCacheTable) | 7882 DECLARE_CAST(CompilationCacheTable) |
| 7882 | 7883 |
| 7883 private: | 7884 private: |
| 7884 DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheTable); | 7885 DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheTable); |
| (...skipping 2918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10803 } else { | 10804 } else { |
| 10804 value &= ~(1 << bit_position); | 10805 value &= ~(1 << bit_position); |
| 10805 } | 10806 } |
| 10806 return value; | 10807 return value; |
| 10807 } | 10808 } |
| 10808 }; | 10809 }; |
| 10809 | 10810 |
| 10810 } } // namespace v8::internal | 10811 } } // namespace v8::internal |
| 10811 | 10812 |
| 10812 #endif // V8_OBJECTS_H_ | 10813 #endif // V8_OBJECTS_H_ |
| OLD | NEW |