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

Unified Diff: src/lithium.cc

Issue 1030353003: Enable constant pool support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/lithium.cc
diff --git a/src/lithium.cc b/src/lithium.cc
index e9991cb81e0c777002556b78af3e66c20dc63588..88e472479f87ec3f478a7254831fe23bebb9929c 100644
--- a/src/lithium.cc
+++ b/src/lithium.cc
@@ -458,7 +458,9 @@ void LChunk::RegisterWeakObjectsInOptimizedCode(Handle<Code> code) const {
AddWeakObjectToCodeDependency(isolate(), objects.at(i), code);
}
if (FLAG_enable_ool_constant_pool) {
- code->constant_pool()->set_weak_object_state(
+ ConstantPoolArray* constant_pool =
+ reinterpret_cast<ConstantPoolArray*>(code->constant_pool());
+ constant_pool->set_weak_object_state(
ConstantPoolArray::WEAK_OBJECTS_IN_OPTIMIZED_CODE);
}
code->set_can_have_weak_objects(true);

Powered by Google App Engine
This is Rietveld 408576698