| 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 <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 7928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7939 static const int kEntrySize = 2; | 7939 static const int kEntrySize = 2; |
| 7940 }; | 7940 }; |
| 7941 | 7941 |
| 7942 | 7942 |
| 7943 class CompilationCacheTable: public HashTable<CompilationCacheTable, | 7943 class CompilationCacheTable: public HashTable<CompilationCacheTable, |
| 7944 CompilationCacheShape, | 7944 CompilationCacheShape, |
| 7945 HashTableKey*> { | 7945 HashTableKey*> { |
| 7946 public: | 7946 public: |
| 7947 // Find cached value for a string key, otherwise return null. | 7947 // Find cached value for a string key, otherwise return null. |
| 7948 Handle<Object> Lookup(Handle<String> src, Handle<Context> context); | 7948 Handle<Object> Lookup(Handle<String> src, Handle<Context> context); |
| 7949 Handle<Object> LookupEval(Handle<String> src, Handle<Context> context, | 7949 Handle<Object> LookupEval(Handle<String> src, |
| 7950 StrictMode strict_mode, int scope_position); | 7950 Handle<SharedFunctionInfo> shared, |
| 7951 StrictMode strict_mode, int scope_position); |
| 7951 Handle<Object> LookupRegExp(Handle<String> source, JSRegExp::Flags flags); | 7952 Handle<Object> LookupRegExp(Handle<String> source, JSRegExp::Flags flags); |
| 7952 static Handle<CompilationCacheTable> Put( | 7953 static Handle<CompilationCacheTable> Put( |
| 7953 Handle<CompilationCacheTable> cache, Handle<String> src, | 7954 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 7954 Handle<Context> context, Handle<Object> value); | 7955 Handle<Context> context, Handle<Object> value); |
| 7955 static Handle<CompilationCacheTable> PutEval( | 7956 static Handle<CompilationCacheTable> PutEval( |
| 7956 Handle<CompilationCacheTable> cache, Handle<String> src, | 7957 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 7957 Handle<Context> context, Handle<SharedFunctionInfo> value, | 7958 Handle<SharedFunctionInfo> context, Handle<SharedFunctionInfo> value, |
| 7958 int scope_position); | 7959 int scope_position); |
| 7959 static Handle<CompilationCacheTable> PutRegExp( | 7960 static Handle<CompilationCacheTable> PutRegExp( |
| 7960 Handle<CompilationCacheTable> cache, Handle<String> src, | 7961 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 7961 JSRegExp::Flags flags, Handle<FixedArray> value); | 7962 JSRegExp::Flags flags, Handle<FixedArray> value); |
| 7962 void Remove(Object* value); | 7963 void Remove(Object* value); |
| 7963 | 7964 |
| 7964 DECLARE_CAST(CompilationCacheTable) | 7965 DECLARE_CAST(CompilationCacheTable) |
| 7965 | 7966 |
| 7966 private: | 7967 private: |
| 7967 DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheTable); | 7968 DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheTable); |
| (...skipping 2943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10911 } else { | 10912 } else { |
| 10912 value &= ~(1 << bit_position); | 10913 value &= ~(1 << bit_position); |
| 10913 } | 10914 } |
| 10914 return value; | 10915 return value; |
| 10915 } | 10916 } |
| 10916 }; | 10917 }; |
| 10917 | 10918 |
| 10918 } } // namespace v8::internal | 10919 } } // namespace v8::internal |
| 10919 | 10920 |
| 10920 #endif // V8_OBJECTS_H_ | 10921 #endif // V8_OBJECTS_H_ |
| OLD | NEW |