| OLD | NEW |
| 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/code_generator.h" | 10 #include "vm/code_generator.h" |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 | 341 |
| 342 const Array& deopt_table = Array::Handle(code.deopt_info_array()); | 342 const Array& deopt_table = Array::Handle(code.deopt_info_array()); |
| 343 intptr_t deopt_table_length = DeoptTable::GetLength(deopt_table); | 343 intptr_t deopt_table_length = DeoptTable::GetLength(deopt_table); |
| 344 if (deopt_table_length > 0) { | 344 if (deopt_table_length > 0) { |
| 345 OS::Print("DeoptInfo: {\n"); | 345 OS::Print("DeoptInfo: {\n"); |
| 346 Smi& offset = Smi::Handle(); | 346 Smi& offset = Smi::Handle(); |
| 347 DeoptInfo& info = DeoptInfo::Handle(); | 347 DeoptInfo& info = DeoptInfo::Handle(); |
| 348 Smi& reason = Smi::Handle(); | 348 Smi& reason = Smi::Handle(); |
| 349 for (intptr_t i = 0; i < deopt_table_length; ++i) { | 349 for (intptr_t i = 0; i < deopt_table_length; ++i) { |
| 350 DeoptTable::GetEntry(deopt_table, i, &offset, &info, &reason); | 350 DeoptTable::GetEntry(deopt_table, i, &offset, &info, &reason); |
| 351 OS::Print("0x%"Px" %s (%s)\n", | 351 OS::Print("%4"Pd": 0x%"Px" %s (%s)\n", |
| 352 i, |
| 352 start + offset.Value(), | 353 start + offset.Value(), |
| 353 info.ToCString(), | 354 info.ToCString(), |
| 354 DeoptReasonToText(reason.Value())); | 355 DeoptReasonToText(reason.Value())); |
| 355 } | 356 } |
| 356 OS::Print("}\n"); | 357 OS::Print("}\n"); |
| 357 } | 358 } |
| 358 | 359 |
| 359 const Array& object_table = Array::Handle(code.object_table()); | 360 const Array& object_table = Array::Handle(code.object_table()); |
| 360 if (object_table.Length() > 0) { | 361 if (object_table.Length() > 0) { |
| 361 OS::Print("Object Table: {\n"); | 362 OS::Print("Object Table: {\n"); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 result = isolate->object_store()->sticky_error(); | 597 result = isolate->object_store()->sticky_error(); |
| 597 isolate->object_store()->clear_sticky_error(); | 598 isolate->object_store()->clear_sticky_error(); |
| 598 isolate->set_long_jump_base(base); | 599 isolate->set_long_jump_base(base); |
| 599 return result.raw(); | 600 return result.raw(); |
| 600 } | 601 } |
| 601 UNREACHABLE(); | 602 UNREACHABLE(); |
| 602 return Object::null(); | 603 return Object::null(); |
| 603 } | 604 } |
| 604 | 605 |
| 605 } // namespace dart | 606 } // namespace dart |
| OLD | NEW |