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

Unified Diff: runtime/vm/compiler.cc

Issue 849093002: Tweak CanLoadFromObjectPool to return true even if obj.InVMHeap(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
« runtime/vm/assembler_x64.cc ('K') | « runtime/vm/assembler_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index e19ee06c6ac0bd9d08305d664d60a137590774f9..09b1b3ae66cb90018d3a1f41ada9b5f6fc046ca2 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -850,6 +850,17 @@ static void DisassembleCode(const Function& function, bool optimized) {
OS::Print("}\n");
}
+ const Array& object_pool = Array::Handle(
+ Instructions::Handle(code.instructions()).object_pool());
+ if (!object_pool.IsNull() && object_pool.Length() > 0) {
zra 2015/01/14 17:53:24 (object_pool.Length() > 0)
Vyacheslav Egorov (Google) 2015/01/14 17:56:33 Done.
+ OS::Print("Object Pool: {\n");
+ for (intptr_t i = 0; i < object_pool.Length(); i++) {
+ OS::Print(" %" Pd ": %s\n", i,
+ Object::Handle(object_pool.At(i)).ToCString());
+ }
+ OS::Print("}\n");
+ }
+
OS::Print("Stackmaps for function '%s' {\n", function_fullname);
if (code.stackmaps() != Array::null()) {
const Array& stackmap_table = Array::Handle(code.stackmaps());
« runtime/vm/assembler_x64.cc ('K') | « runtime/vm/assembler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698