OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/compiler.h" | 5 #include "vm/compiler.h" |
6 | 6 |
7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
8 | 8 |
9 #include "vm/ast_printer.h" | 9 #include "vm/ast_printer.h" |
10 #include "vm/block_scheduler.h" | 10 #include "vm/block_scheduler.h" |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 ISL_Print("%4" Pd ": 0x%" Px " %s (%s)\n", | 860 ISL_Print("%4" Pd ": 0x%" Px " %s (%s)\n", |
861 i, | 861 i, |
862 start + offset.Value(), | 862 start + offset.Value(), |
863 DeoptInfo::ToCString(deopt_table, info), | 863 DeoptInfo::ToCString(deopt_table, info), |
864 DeoptReasonToCString( | 864 DeoptReasonToCString( |
865 static_cast<ICData::DeoptReasonId>(reason))); | 865 static_cast<ICData::DeoptReasonId>(reason))); |
866 } | 866 } |
867 ISL_Print("}\n"); | 867 ISL_Print("}\n"); |
868 } | 868 } |
869 | 869 |
870 const Array& object_pool = Array::Handle(code.ObjectPool()); | 870 const ObjectPool& object_pool = ObjectPool::Handle(code.GetObjectPool()); |
871 if (object_pool.Length() > 0) { | 871 object_pool.DebugPrint(); |
872 ISL_Print("Object Pool: {\n"); | |
873 for (intptr_t i = 0; i < object_pool.Length(); i++) { | |
874 ISL_Print(" %" Pd ": %s\n", i, | |
875 Object::Handle(object_pool.At(i)).ToCString()); | |
876 } | |
877 ISL_Print("}\n"); | |
878 } | |
879 | 872 |
880 ISL_Print("Stackmaps for function '%s' {\n", function_fullname); | 873 ISL_Print("Stackmaps for function '%s' {\n", function_fullname); |
881 if (code.stackmaps() != Array::null()) { | 874 if (code.stackmaps() != Array::null()) { |
882 const Array& stackmap_table = Array::Handle(code.stackmaps()); | 875 const Array& stackmap_table = Array::Handle(code.stackmaps()); |
883 Stackmap& map = Stackmap::Handle(); | 876 Stackmap& map = Stackmap::Handle(); |
884 for (intptr_t i = 0; i < stackmap_table.Length(); ++i) { | 877 for (intptr_t i = 0; i < stackmap_table.Length(); ++i) { |
885 map ^= stackmap_table.At(i); | 878 map ^= stackmap_table.At(i); |
886 ISL_Print("%s\n", map.ToCString()); | 879 ISL_Print("%s\n", map.ToCString()); |
887 } | 880 } |
888 } | 881 } |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 const Object& result = | 1299 const Object& result = |
1307 PassiveObject::Handle(isolate->object_store()->sticky_error()); | 1300 PassiveObject::Handle(isolate->object_store()->sticky_error()); |
1308 isolate->object_store()->clear_sticky_error(); | 1301 isolate->object_store()->clear_sticky_error(); |
1309 return result.raw(); | 1302 return result.raw(); |
1310 } | 1303 } |
1311 UNREACHABLE(); | 1304 UNREACHABLE(); |
1312 return Object::null(); | 1305 return Object::null(); |
1313 } | 1306 } |
1314 | 1307 |
1315 } // namespace dart | 1308 } // namespace dart |
OLD | NEW |