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

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

Issue 1150633002: Track prologue offset of Code and use for more precise return addresses (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/assembler_x64.cc ('k') | runtime/vm/instructions_ia32.h » ('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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 Array::Handle(isolate, graph_compiler.CreateDeoptInfo(&assembler)); 714 Array::Handle(isolate, graph_compiler.CreateDeoptInfo(&assembler));
715 INC_STAT(isolate, total_code_size, 715 INC_STAT(isolate, total_code_size,
716 deopt_info_array.Length() * sizeof(uword)); 716 deopt_info_array.Length() * sizeof(uword));
717 const Code& code = Code::Handle( 717 const Code& code = Code::Handle(
718 Code::FinalizeCode(function, &assembler, optimized)); 718 Code::FinalizeCode(function, &assembler, optimized));
719 code.set_is_optimized(optimized); 719 code.set_is_optimized(optimized);
720 720
721 const Array& intervals = graph_compiler.inlined_code_intervals(); 721 const Array& intervals = graph_compiler.inlined_code_intervals();
722 INC_STAT(isolate, total_code_size, 722 INC_STAT(isolate, total_code_size,
723 intervals.Length() * sizeof(uword)); 723 intervals.Length() * sizeof(uword));
724 code.set_inlined_intervals(intervals); 724 code.SetInlinedIntervals(intervals);
725 725
726 const Array& inlined_id_array = 726 const Array& inlined_id_array =
727 Array::Handle(isolate, graph_compiler.InliningIdToFunction()); 727 Array::Handle(isolate, graph_compiler.InliningIdToFunction());
728 INC_STAT(isolate, total_code_size, 728 INC_STAT(isolate, total_code_size,
729 inlined_id_array.Length() * sizeof(uword)); 729 inlined_id_array.Length() * sizeof(uword));
730 code.set_inlined_id_to_function(inlined_id_array); 730 code.SetInlinedIdToFunction(inlined_id_array);
731 731
732 graph_compiler.FinalizePcDescriptors(code); 732 graph_compiler.FinalizePcDescriptors(code);
733 code.set_deopt_info_array(deopt_info_array); 733 code.set_deopt_info_array(deopt_info_array);
734 734
735 graph_compiler.FinalizeStackmaps(code); 735 graph_compiler.FinalizeStackmaps(code);
736 graph_compiler.FinalizeVarDescriptors(code); 736 graph_compiler.FinalizeVarDescriptors(code);
737 graph_compiler.FinalizeExceptionHandlers(code); 737 graph_compiler.FinalizeExceptionHandlers(code);
738 graph_compiler.FinalizeStaticCallTargetsTable(code); 738 graph_compiler.FinalizeStaticCallTargetsTable(code);
739 739
740 if (optimized) { 740 if (optimized) {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 const Object& result = 1306 const Object& result =
1307 PassiveObject::Handle(isolate->object_store()->sticky_error()); 1307 PassiveObject::Handle(isolate->object_store()->sticky_error());
1308 isolate->object_store()->clear_sticky_error(); 1308 isolate->object_store()->clear_sticky_error();
1309 return result.raw(); 1309 return result.raw();
1310 } 1310 }
1311 UNREACHABLE(); 1311 UNREACHABLE();
1312 return Object::null(); 1312 return Object::null();
1313 } 1313 }
1314 1314
1315 } // namespace dart 1315 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/instructions_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698