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

Unified Diff: src/objects.cc

Issue 23691002: Add OptimizedCodeEntry as a new heap object type. An optimized code entry represents an association… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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
« src/objects.h ('K') | « src/objects.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 3e4601a65e1176eeea207dd77e54590c9df40190..20df0b92166d053063432324ba8f616cd4868c6d 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -1786,6 +1786,10 @@ void HeapObject::IterateBody(InstanceType type, int object_size,
SharedFunctionInfo::BodyDescriptor::IterateBody(this, v);
break;
}
+ case OPTIMIZED_CODE_ENTRY_TYPE: {
+ OptimizedCodeEntry::BodyDescriptor::IterateBody(this, v);
+ break;
+ }
#define MAKE_STRUCT_CASE(NAME, Name, name) \
case NAME##_TYPE:
@@ -9471,6 +9475,15 @@ void SharedFunctionInfo::TrimOptimizedCodeMap(int shrink_by) {
}
+void OptimizedCodeEntry::Kill() {
+ set_function(NULL, SKIP_WRITE_BARRIER);
+ set_code(NULL, SKIP_WRITE_BARRIER);
+ set_native_context(NULL, SKIP_WRITE_BARRIER);
+ set_literals(NULL, SKIP_WRITE_BARRIER);
+ set_cacheable(false);
+}
+
+
bool JSFunction::CompileLazy(Handle<JSFunction> function,
ClearExceptionFlag flag) {
bool result = true;
« src/objects.h ('K') | « src/objects.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698