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

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

Issue 608913002: Track references to allocation stubs via static_calls_table, instead of keeping two referencers ali… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/compiler_test.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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 OS::Print("Static call target functions {\n"); 790 OS::Print("Static call target functions {\n");
791 const Array& table = Array::Handle(code.static_calls_target_table()); 791 const Array& table = Array::Handle(code.static_calls_target_table());
792 Smi& offset = Smi::Handle(); 792 Smi& offset = Smi::Handle();
793 Function& function = Function::Handle(); 793 Function& function = Function::Handle();
794 Code& code = Code::Handle(); 794 Code& code = Code::Handle();
795 for (intptr_t i = 0; i < table.Length(); 795 for (intptr_t i = 0; i < table.Length();
796 i += Code::kSCallTableEntryLength) { 796 i += Code::kSCallTableEntryLength) {
797 offset ^= table.At(i + Code::kSCallTableOffsetEntry); 797 offset ^= table.At(i + Code::kSCallTableOffsetEntry);
798 function ^= table.At(i + Code::kSCallTableFunctionEntry); 798 function ^= table.At(i + Code::kSCallTableFunctionEntry);
799 code ^= table.At(i + Code::kSCallTableCodeEntry); 799 code ^= table.At(i + Code::kSCallTableCodeEntry);
800 OS::Print(" 0x%" Px ": %s, %p\n", 800 if (function.IsNull()) {
801 start + offset.Value(), 801 Class& cls = Class::Handle();
802 function.ToFullyQualifiedCString(), 802 cls ^= code.owner();
803 code.raw()); 803 OS::Print(" 0x%" Px ": allocation stub for %s, %p\n",
804 start + offset.Value(),
805 cls.ToCString(),
806 code.raw());
807 } else {
808 OS::Print(" 0x%" Px ": %s, %p\n",
809 start + offset.Value(),
810 function.ToFullyQualifiedCString(),
811 code.raw());
812 }
804 } 813 }
805 OS::Print("}\n"); 814 OS::Print("}\n");
806 } 815 }
807 } 816 }
808 817
809 818
810 static RawError* CompileFunctionHelper(const Function& function, 819 static RawError* CompileFunctionHelper(const Function& function,
811 bool optimized, 820 bool optimized,
812 intptr_t osr_id) { 821 intptr_t osr_id) {
813 Isolate* isolate = Isolate::Current(); 822 Isolate* isolate = Isolate::Current();
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 const Object& result = 1062 const Object& result =
1054 PassiveObject::Handle(isolate->object_store()->sticky_error()); 1063 PassiveObject::Handle(isolate->object_store()->sticky_error());
1055 isolate->object_store()->clear_sticky_error(); 1064 isolate->object_store()->clear_sticky_error();
1056 return result.raw(); 1065 return result.raw();
1057 } 1066 }
1058 UNREACHABLE(); 1067 UNREACHABLE();
1059 return Object::null(); 1068 return Object::null();
1060 } 1069 }
1061 1070
1062 } // namespace dart 1071 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/compiler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698