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

Side by Side Diff: runtime/vm/compiler.cc

Issue 1175523002: Object pool with support for untagged entries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/code_patcher_x64.cc ('k') | runtime/vm/deferred_objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 ISL_Print("%4" Pd ": 0x%" Px " %s (%s)\n", 873 ISL_Print("%4" Pd ": 0x%" Px " %s (%s)\n",
874 i, 874 i,
875 start + offset.Value(), 875 start + offset.Value(),
876 DeoptInfo::ToCString(deopt_table, info), 876 DeoptInfo::ToCString(deopt_table, info),
877 DeoptReasonToCString( 877 DeoptReasonToCString(
878 static_cast<ICData::DeoptReasonId>(reason))); 878 static_cast<ICData::DeoptReasonId>(reason)));
879 } 879 }
880 ISL_Print("}\n"); 880 ISL_Print("}\n");
881 } 881 }
882 882
883 const Array& object_pool = Array::Handle(code.ObjectPool()); 883 const ObjectPool& object_pool = ObjectPool::Handle(code.GetObjectPool());
884 if (object_pool.Length() > 0) { 884 object_pool.DebugPrint();
885 ISL_Print("Object Pool: {\n");
886 for (intptr_t i = 0; i < object_pool.Length(); i++) {
887 ISL_Print(" %" Pd ": %s\n", i,
888 Object::Handle(object_pool.At(i)).ToCString());
889 }
890 ISL_Print("}\n");
891 }
892 885
893 ISL_Print("Stackmaps for function '%s' {\n", function_fullname); 886 ISL_Print("Stackmaps for function '%s' {\n", function_fullname);
894 if (code.stackmaps() != Array::null()) { 887 if (code.stackmaps() != Array::null()) {
895 const Array& stackmap_table = Array::Handle(code.stackmaps()); 888 const Array& stackmap_table = Array::Handle(code.stackmaps());
896 Stackmap& map = Stackmap::Handle(); 889 Stackmap& map = Stackmap::Handle();
897 for (intptr_t i = 0; i < stackmap_table.Length(); ++i) { 890 for (intptr_t i = 0; i < stackmap_table.Length(); ++i) {
898 map ^= stackmap_table.At(i); 891 map ^= stackmap_table.At(i);
899 ISL_Print("%s\n", map.ToCString()); 892 ISL_Print("%s\n", map.ToCString());
900 } 893 }
901 } 894 }
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 const Object& result = 1322 const Object& result =
1330 PassiveObject::Handle(isolate->object_store()->sticky_error()); 1323 PassiveObject::Handle(isolate->object_store()->sticky_error());
1331 isolate->object_store()->clear_sticky_error(); 1324 isolate->object_store()->clear_sticky_error();
1332 return result.raw(); 1325 return result.raw();
1333 } 1326 }
1334 UNREACHABLE(); 1327 UNREACHABLE();
1335 return Object::null(); 1328 return Object::null();
1336 } 1329 }
1337 1330
1338 } // namespace dart 1331 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_patcher_x64.cc ('k') | runtime/vm/deferred_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698