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

Unified Diff: src/heap/heap.h

Issue 1239793002: [interpreter] Add basic framework for bytecode handler code generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 5 years, 5 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
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 5e56d94ceccbce5a2ba492d1cabc3dd7c266395a..769f53ff58267d2a87e63381cd7604cde0cf055f 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -197,7 +197,8 @@ namespace internal {
V(PropertyCell, empty_property_cell, EmptyPropertyCell) \
V(Object, weak_stack_trace_list, WeakStackTraceList) \
V(Object, code_stub_context, CodeStubContext) \
- V(JSObject, code_stub_exports_object, CodeStubExportsObject)
+ V(JSObject, code_stub_exports_object, CodeStubExportsObject) \
+ V(FixedArray, interpreter_table, InterpreterTable)
// Entries in this list are limited to Smis and are not visited during GC.
#define SMI_ROOT_LIST(V) \
@@ -1002,6 +1003,10 @@ class Heap {
roots_[kMaterializedObjectsRootIndex] = objects;
}
+ void public_set_interpreter_table(FixedArray* table) {
+ roots_[kInterpreterTableRootIndex] = table;
+ }
+
// Generated code can embed this address to get access to the roots.
Object** roots_array_start() { return roots_; }

Powered by Google App Engine
This is Rietveld 408576698