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

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

Issue 1073173003: Eliminate object table and use regular object pool for deoptimization infos. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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/raw_object.h ('k') | no next file » | 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/stack_frame.h" 5 #include "vm/stack_frame.h"
6 6
7 #include "platform/memory_sanitizer.h" 7 #include "platform/memory_sanitizer.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/deopt_instructions.h" 9 #include "vm/deopt_instructions.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 // This is the case when a call without deopt info in optimized code 445 // This is the case when a call without deopt info in optimized code
446 // throws an exception. (e.g. in the parameter copying prologue). 446 // throws an exception. (e.g. in the parameter copying prologue).
447 // In that case there won't be any inlined frames. 447 // In that case there won't be any inlined frames.
448 function_ = code_.function(); 448 function_ = code_.function();
449 } else { 449 } else {
450 // Unpack deopt info into instructions (translate away suffixes). 450 // Unpack deopt info into instructions (translate away suffixes).
451 const Array& deopt_table = Array::Handle(code_.deopt_info_array()); 451 const Array& deopt_table = Array::Handle(code_.deopt_info_array());
452 ASSERT(!deopt_table.IsNull()); 452 ASSERT(!deopt_table.IsNull());
453 DeoptInfo::Unpack(deopt_table, deopt_info_, &deopt_instructions_); 453 DeoptInfo::Unpack(deopt_table, deopt_info_, &deopt_instructions_);
454 num_materializations_ = DeoptInfo::NumMaterializations(deopt_instructions_); 454 num_materializations_ = DeoptInfo::NumMaterializations(deopt_instructions_);
455 object_table_ = code_.object_table(); 455 object_table_ = code_.ObjectPool();
456 Advance(); 456 Advance();
457 } 457 }
458 } 458 }
459 459
460 460
461 void InlinedFunctionsIterator::Advance() { 461 void InlinedFunctionsIterator::Advance() {
462 // Iterate over the deopt instructions and determine the inlined 462 // Iterate over the deopt instructions and determine the inlined
463 // functions if any and iterate over them. 463 // functions if any and iterate over them.
464 ASSERT(!Done()); 464 ASSERT(!Done());
465 465
(...skipping 26 matching lines...) Expand all
492 if (deopt_instr->kind() == DeoptInstr::kCallerFp) { 492 if (deopt_instr->kind() == DeoptInstr::kCallerFp) {
493 return (index - num_materializations_); 493 return (index - num_materializations_);
494 } 494 }
495 } 495 }
496 UNREACHABLE(); 496 UNREACHABLE();
497 return 0; 497 return 0;
498 } 498 }
499 499
500 500
501 } // namespace dart 501 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698