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

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

Issue 343803002: Finishes removing intptr_t from raw object fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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
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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 const LocalVarDescriptors& var_descriptors = 706 const LocalVarDescriptors& var_descriptors =
707 LocalVarDescriptors::Handle(code.var_descriptors()); 707 LocalVarDescriptors::Handle(code.var_descriptors());
708 intptr_t var_desc_length = 708 intptr_t var_desc_length =
709 var_descriptors.IsNull() ? 0 : var_descriptors.Length(); 709 var_descriptors.IsNull() ? 0 : var_descriptors.Length();
710 String& var_name = String::Handle(); 710 String& var_name = String::Handle();
711 for (intptr_t i = 0; i < var_desc_length; i++) { 711 for (intptr_t i = 0; i < var_desc_length; i++) {
712 var_name = var_descriptors.GetName(i); 712 var_name = var_descriptors.GetName(i);
713 RawLocalVarDescriptors::VarInfo var_info; 713 RawLocalVarDescriptors::VarInfo var_info;
714 var_descriptors.GetInfo(i, &var_info); 714 var_descriptors.GetInfo(i, &var_info);
715 if (var_info.kind == RawLocalVarDescriptors::kSavedEntryContext) { 715 if (var_info.kind == RawLocalVarDescriptors::kSavedEntryContext) {
716 OS::Print(" saved caller's CTX reg offset %" Pd "\n", var_info.index); 716 OS::Print(" saved caller's CTX reg offset %d\n", var_info.index);
717 } else if (var_info.kind == RawLocalVarDescriptors::kSavedCurrentContext) { 717 } else if (var_info.kind == RawLocalVarDescriptors::kSavedCurrentContext) {
718 OS::Print(" saved current CTX reg offset %" Pd "\n", var_info.index); 718 OS::Print(" saved current CTX reg offset %d\n", var_info.index);
719 } else { 719 } else {
720 if (var_info.kind == RawLocalVarDescriptors::kContextLevel) { 720 if (var_info.kind == RawLocalVarDescriptors::kContextLevel) {
721 OS::Print(" context level %" Pd " scope %d", 721 OS::Print(" context level %d scope %d",
722 var_info.index, var_info.scope_id); 722 var_info.index, var_info.scope_id);
723 } else if (var_info.kind == RawLocalVarDescriptors::kStackVar) { 723 } else if (var_info.kind == RawLocalVarDescriptors::kStackVar) {
724 OS::Print(" stack var '%s' offset %" Pd "", 724 OS::Print(" stack var '%s' offset %d",
725 var_name.ToCString(), var_info.index); 725 var_name.ToCString(), var_info.index);
726 } else { 726 } else {
727 ASSERT(var_info.kind == RawLocalVarDescriptors::kContextVar); 727 ASSERT(var_info.kind == RawLocalVarDescriptors::kContextVar);
728 OS::Print(" context var '%s' level %d offset %" Pd "", 728 OS::Print(" context var '%s' level %d offset %d",
729 var_name.ToCString(), var_info.scope_id, var_info.index); 729 var_name.ToCString(), var_info.scope_id, var_info.index);
730 } 730 }
731 OS::Print(" (valid %" Pd "-%" Pd ")\n", 731 OS::Print(" (valid %d-%d)\n", var_info.begin_pos, var_info.end_pos);
732 var_info.begin_pos, var_info.end_pos);
733 } 732 }
734 } 733 }
735 OS::Print("}\n"); 734 OS::Print("}\n");
736 735
737 OS::Print("Exception Handlers for function '%s' {\n", function_fullname); 736 OS::Print("Exception Handlers for function '%s' {\n", function_fullname);
738 const ExceptionHandlers& handlers = 737 const ExceptionHandlers& handlers =
739 ExceptionHandlers::Handle(code.exception_handlers()); 738 ExceptionHandlers::Handle(code.exception_handlers());
740 OS::Print("%s}\n", handlers.ToCString()); 739 OS::Print("%s}\n", handlers.ToCString());
741 740
742 { 741 {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 const Object& result = 979 const Object& result =
981 Object::Handle(isolate->object_store()->sticky_error()); 980 Object::Handle(isolate->object_store()->sticky_error());
982 isolate->object_store()->clear_sticky_error(); 981 isolate->object_store()->clear_sticky_error();
983 return result.raw(); 982 return result.raw();
984 } 983 }
985 UNREACHABLE(); 984 UNREACHABLE();
986 return Object::null(); 985 return Object::null();
987 } 986 }
988 987
989 } // namespace dart 988 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698