| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 function_fullname); | 442 function_fullname); |
| 443 const LocalVarDescriptors& var_descriptors = | 443 const LocalVarDescriptors& var_descriptors = |
| 444 LocalVarDescriptors::Handle(code.var_descriptors()); | 444 LocalVarDescriptors::Handle(code.var_descriptors()); |
| 445 intptr_t var_desc_length = | 445 intptr_t var_desc_length = |
| 446 var_descriptors.IsNull() ? 0 : var_descriptors.Length(); | 446 var_descriptors.IsNull() ? 0 : var_descriptors.Length(); |
| 447 String& var_name = String::Handle(); | 447 String& var_name = String::Handle(); |
| 448 for (intptr_t i = 0; i < var_desc_length; i++) { | 448 for (intptr_t i = 0; i < var_desc_length; i++) { |
| 449 var_name = var_descriptors.GetName(i); | 449 var_name = var_descriptors.GetName(i); |
| 450 RawLocalVarDescriptors::VarInfo var_info; | 450 RawLocalVarDescriptors::VarInfo var_info; |
| 451 var_descriptors.GetInfo(i, &var_info); | 451 var_descriptors.GetInfo(i, &var_info); |
| 452 if (var_info.kind == RawLocalVarDescriptors::kContextChain) { | 452 if (var_info.kind == RawLocalVarDescriptors::kSavedEntryContext) { |
| 453 OS::Print(" saved CTX reg offset %"Pd"\n", var_info.index); | 453 OS::Print(" saved caller's CTX reg offset %"Pd"\n", var_info.index); |
| 454 } else if (var_info.kind == RawLocalVarDescriptors::kSavedCurrentContext) { |
| 455 OS::Print(" saved current CTX reg offset %"Pd"\n", var_info.index); |
| 454 } else { | 456 } else { |
| 455 if (var_info.kind == RawLocalVarDescriptors::kContextLevel) { | 457 if (var_info.kind == RawLocalVarDescriptors::kContextLevel) { |
| 456 OS::Print(" context level %"Pd" scope %d", | 458 OS::Print(" context level %"Pd" scope %d", |
| 457 var_info.index, var_info.scope_id); | 459 var_info.index, var_info.scope_id); |
| 458 } else if (var_info.kind == RawLocalVarDescriptors::kStackVar) { | 460 } else if (var_info.kind == RawLocalVarDescriptors::kStackVar) { |
| 459 OS::Print(" stack var '%s' offset %"Pd"", | 461 OS::Print(" stack var '%s' offset %"Pd"", |
| 460 var_name.ToCString(), var_info.index); | 462 var_name.ToCString(), var_info.index); |
| 461 } else { | 463 } else { |
| 462 ASSERT(var_info.kind == RawLocalVarDescriptors::kContextVar); | 464 ASSERT(var_info.kind == RawLocalVarDescriptors::kContextVar); |
| 463 OS::Print(" context var '%s' level %d offset %"Pd"", | 465 OS::Print(" context var '%s' level %d offset %"Pd"", |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 Object::Handle(isolate->object_store()->sticky_error()); | 701 Object::Handle(isolate->object_store()->sticky_error()); |
| 700 isolate->object_store()->clear_sticky_error(); | 702 isolate->object_store()->clear_sticky_error(); |
| 701 isolate->set_long_jump_base(base); | 703 isolate->set_long_jump_base(base); |
| 702 return result.raw(); | 704 return result.raw(); |
| 703 } | 705 } |
| 704 UNREACHABLE(); | 706 UNREACHABLE(); |
| 705 return Object::null(); | 707 return Object::null(); |
| 706 } | 708 } |
| 707 | 709 |
| 708 } // namespace dart | 710 } // namespace dart |
| OLD | NEW |