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

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 170543002: Fix compile on Windows (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 HeapEntry::Type type, 901 HeapEntry::Type type,
902 const char* name) { 902 const char* name) {
903 return AddEntry(object->address(), type, name, object->Size()); 903 return AddEntry(object->address(), type, name, object->Size());
904 } 904 }
905 905
906 906
907 HeapEntry* V8HeapExplorer::AddEntry(Address address, 907 HeapEntry* V8HeapExplorer::AddEntry(Address address,
908 HeapEntry::Type type, 908 HeapEntry::Type type,
909 const char* name, 909 const char* name,
910 size_t size) { 910 size_t size) {
911 SnapshotObjectId object_id = heap_object_map_->FindOrAddEntry(address, size); 911 SnapshotObjectId object_id = heap_object_map_->FindOrAddEntry(
912 address, static_cast<unsigned int>(size));
Dmitry Lomov (no reviews) 2014/02/18 14:26:30 Shouldn't this be size_t?
alph 2014/02/18 14:27:53 Yes, it should. I just need a quick fix for now. P
912 return snapshot_->AddEntry(type, name, object_id, size); 913 return snapshot_->AddEntry(type, name, object_id, size);
913 } 914 }
914 915
915 916
916 class GcSubrootsEnumerator : public ObjectVisitor { 917 class GcSubrootsEnumerator : public ObjectVisitor {
917 public: 918 public:
918 GcSubrootsEnumerator( 919 GcSubrootsEnumerator(
919 SnapshotFillerInterface* filler, V8HeapExplorer* explorer) 920 SnapshotFillerInterface* filler, V8HeapExplorer* explorer)
920 : filler_(filler), 921 : filler_(filler),
921 explorer_(explorer), 922 explorer_(explorer),
(...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after
3064 writer_->AddString("\"<dummy>\""); 3065 writer_->AddString("\"<dummy>\"");
3065 for (int i = 1; i < sorted_strings.length(); ++i) { 3066 for (int i = 1; i < sorted_strings.length(); ++i) {
3066 writer_->AddCharacter(','); 3067 writer_->AddCharacter(',');
3067 SerializeString(sorted_strings[i]); 3068 SerializeString(sorted_strings[i]);
3068 if (writer_->aborted()) return; 3069 if (writer_->aborted()) return;
3069 } 3070 }
3070 } 3071 }
3071 3072
3072 3073
3073 } } // namespace v8::internal 3074 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698