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/code_generator.cc

Issue 26294002: Cleanups: int -> intptr_t for "array" lengths, memory sizes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/bit_vector.cc ('k') | runtime/vm/flow_graph_inliner.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/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 ASSERT(caller_frame != NULL); 858 ASSERT(caller_frame != NULL);
859 if (FLAG_trace_ic_miss_in_optimized) { 859 if (FLAG_trace_ic_miss_in_optimized) {
860 const Code& caller = Code::Handle(Code::LookupCode(caller_frame->pc())); 860 const Code& caller = Code::Handle(Code::LookupCode(caller_frame->pc()));
861 if (caller.is_optimized()) { 861 if (caller.is_optimized()) {
862 OS::PrintErr("IC miss in optimized code; call %s -> %s\n", 862 OS::PrintErr("IC miss in optimized code; call %s -> %s\n",
863 Function::Handle(caller.function()).ToCString(), 863 Function::Handle(caller.function()).ToCString(),
864 target_function.ToCString()); 864 target_function.ToCString());
865 } 865 }
866 } 866 }
867 if (FLAG_trace_ic) { 867 if (FLAG_trace_ic) {
868 OS::PrintErr("InlineCacheMissHandler %d call at %#" Px "' " 868 OS::PrintErr("InlineCacheMissHandler %" Pd " call at %#" Px "' "
869 "adding <%s> id:%" Pd " -> <%s>\n", 869 "adding <%s> id:%" Pd " -> <%s>\n",
870 args.length(), 870 args.length(),
871 caller_frame->pc(), 871 caller_frame->pc(),
872 Class::Handle(receiver.clazz()).ToCString(), 872 Class::Handle(receiver.clazz()).ToCString(),
873 receiver.GetClassId(), 873 receiver.GetClassId(),
874 target_function.ToCString()); 874 target_function.ToCString());
875 } 875 }
876 } 876 }
877 return target_function.raw(); 877 return target_function.raw();
878 } 878 }
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
1825 field.UpdateCid(cid); 1825 field.UpdateCid(cid);
1826 intptr_t list_length = Field::kNoFixedLength; 1826 intptr_t list_length = Field::kNoFixedLength;
1827 if ((field.guarded_cid() != kDynamicCid) && 1827 if ((field.guarded_cid() != kDynamicCid) &&
1828 field.is_final() && RawObject::IsBuiltinListClassId(cid)) { 1828 field.is_final() && RawObject::IsBuiltinListClassId(cid)) {
1829 list_length = GetListLength(value); 1829 list_length = GetListLength(value);
1830 } 1830 }
1831 field.UpdateLength(list_length); 1831 field.UpdateLength(list_length);
1832 } 1832 }
1833 1833
1834 } // namespace dart 1834 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/bit_vector.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698