Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: src/objects-inl.h

Issue 10990076: Short term JSON eval cache Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | src/runtime.h » ('j') | src/v8.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
===================================================================
--- src/objects-inl.h (revision 12582)
+++ src/objects-inl.h (working copy)
@@ -703,6 +703,11 @@
}
+bool Object::IsShortTermJSONEvalCacheTable() {
+ return IsHashTable();
+}
+
+
bool Object::IsCodeCacheHashTable() {
return IsHashTable();
}
@@ -2250,6 +2255,7 @@
uint32_t count = 1;
// EnsureCapacity will guarantee the hash table is never full.
while (true) {
+ ASSERT(count <= capacity);
Object* element = KeyAt(entry);
// Empty entry.
if (element == isolate->heap()->raw_unchecked_undefined_value()) break;
@@ -2296,6 +2302,7 @@
CAST_ACCESSOR(NormalizedMapCache)
CAST_ACCESSOR(ScopeInfo)
CAST_ACCESSOR(CompilationCacheTable)
+CAST_ACCESSOR(ShortTermJSONEvalCacheTable)
CAST_ACCESSOR(CodeCacheHashTable)
CAST_ACCESSOR(PolymorphicCodeCacheHashTable)
CAST_ACCESSOR(MapCache)
@@ -3968,6 +3975,10 @@
compiler_hints,
has_duplicate_parameters,
kHasDuplicateParameters)
+BOOL_ACCESSORS(SharedFunctionInfo,
+ compiler_hints,
+ is_json_eval,
+ kIsJSONEval)
#if V8_HOST_ARCH_32_BIT
« no previous file with comments | « src/objects.cc ('k') | src/runtime.h » ('j') | src/v8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698