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

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

Issue 23465004: More cleanup related to malformed and malbounded types. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/class_finalizer.cc ('k') | runtime/vm/flow_graph_compiler_arm.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/deopt_instructions.h" 5 #include "vm/deopt_instructions.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 #include "vm/locations.h" 10 #include "vm/locations.h"
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 return DeoptSuffixInstr::SuffixLength::decode(from_index); 737 return DeoptSuffixInstr::SuffixLength::decode(from_index);
738 } 738 }
739 739
740 740
741 uword DeoptInstr::GetRetAddress(DeoptInstr* instr, 741 uword DeoptInstr::GetRetAddress(DeoptInstr* instr,
742 const Array& object_table, 742 const Array& object_table,
743 Function* func) { 743 Function* func) {
744 ASSERT(instr->kind() == kRetAddress); 744 ASSERT(instr->kind() == kRetAddress);
745 DeoptRetAddressInstr* ret_address_instr = 745 DeoptRetAddressInstr* ret_address_instr =
746 static_cast<DeoptRetAddressInstr*>(instr); 746 static_cast<DeoptRetAddressInstr*>(instr);
747 // TODO(regis): The following assert may trigger when displaying a backtrace 747 // The following assert may trigger when displaying a backtrace
748 // from the simulator. 748 // from the simulator.
749 ASSERT(Isolate::IsDeoptAfter(ret_address_instr->deopt_id())); 749 ASSERT(Isolate::IsDeoptAfter(ret_address_instr->deopt_id()));
750 ASSERT(!object_table.IsNull()); 750 ASSERT(!object_table.IsNull());
751 ASSERT(func != NULL); 751 ASSERT(func != NULL);
752 *func ^= object_table.At(ret_address_instr->object_table_index()); 752 *func ^= object_table.At(ret_address_instr->object_table_index());
753 const Code& code = Code::Handle(func->unoptimized_code()); 753 const Code& code = Code::Handle(func->unoptimized_code());
754 ASSERT(!code.IsNull()); 754 ASSERT(!code.IsNull());
755 uword res = code.GetPcForDeoptId(ret_address_instr->deopt_id(), 755 uword res = code.GetPcForDeoptId(ret_address_instr->deopt_id(),
756 PcDescriptors::kDeopt); 756 PcDescriptors::kDeopt);
757 ASSERT(res != 0); 757 ASSERT(res != 0);
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 Smi* offset, 1099 Smi* offset,
1100 DeoptInfo* info, 1100 DeoptInfo* info,
1101 Smi* reason) { 1101 Smi* reason) {
1102 intptr_t i = index * kEntrySize; 1102 intptr_t i = index * kEntrySize;
1103 *offset ^= table.At(i); 1103 *offset ^= table.At(i);
1104 *info ^= table.At(i + 1); 1104 *info ^= table.At(i + 1);
1105 *reason ^= table.At(i + 2); 1105 *reason ^= table.At(i + 2);
1106 } 1106 }
1107 1107
1108 } // namespace dart 1108 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698