OLD | NEW |
---|---|
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 29 matching lines...) Expand all Loading... | |
40 | 40 |
41 | 41 |
42 HeapGraphEdge::HeapGraphEdge(Type type, const char* name, int from, int to) | 42 HeapGraphEdge::HeapGraphEdge(Type type, const char* name, int from, int to) |
43 : type_(type), | 43 : type_(type), |
44 from_index_(from), | 44 from_index_(from), |
45 to_index_(to), | 45 to_index_(to), |
46 name_(name) { | 46 name_(name) { |
47 ASSERT(type == kContextVariable | 47 ASSERT(type == kContextVariable |
48 || type == kProperty | 48 || type == kProperty |
49 || type == kInternal | 49 || type == kInternal |
50 || type == kShortcut); | 50 || type == kShortcut |
51 || type == kWeak); | |
51 } | 52 } |
52 | 53 |
53 | 54 |
54 HeapGraphEdge::HeapGraphEdge(Type type, int index, int from, int to) | 55 HeapGraphEdge::HeapGraphEdge(Type type, int index, int from, int to) |
55 : type_(type), | 56 : type_(type), |
56 from_index_(from), | 57 from_index_(from), |
57 to_index_(to), | 58 to_index_(to), |
58 index_(index) { | 59 index_(index) { |
59 ASSERT(type == kElement || type == kHidden || type == kWeak); | 60 ASSERT(type == kElement || type == kHidden); |
60 } | 61 } |
61 | 62 |
62 | 63 |
63 void HeapGraphEdge::ReplaceToIndexWithEntry(HeapSnapshot* snapshot) { | 64 void HeapGraphEdge::ReplaceToIndexWithEntry(HeapSnapshot* snapshot) { |
64 to_entry_ = &snapshot->entries()[to_index_]; | 65 to_entry_ = &snapshot->entries()[to_index_]; |
65 } | 66 } |
66 | 67 |
67 | 68 |
68 const int HeapEntry::kNoEntry = -1; | 69 const int HeapEntry::kNoEntry = -1; |
69 | 70 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 case HeapGraphEdge::kHidden: | 144 case HeapGraphEdge::kHidden: |
144 edge_prefix = "$"; | 145 edge_prefix = "$"; |
145 OS::SNPrintF(index, "%d", edge.index()); | 146 OS::SNPrintF(index, "%d", edge.index()); |
146 break; | 147 break; |
147 case HeapGraphEdge::kShortcut: | 148 case HeapGraphEdge::kShortcut: |
148 edge_prefix = "^"; | 149 edge_prefix = "^"; |
149 edge_name = edge.name(); | 150 edge_name = edge.name(); |
150 break; | 151 break; |
151 case HeapGraphEdge::kWeak: | 152 case HeapGraphEdge::kWeak: |
152 edge_prefix = "w"; | 153 edge_prefix = "w"; |
153 OS::SNPrintF(index, "%d", edge.index()); | 154 edge_name = edge.name(); |
154 break; | 155 break; |
155 default: | 156 default: |
156 OS::SNPrintF(index, "!!! unknown edge type: %d ", edge.type()); | 157 OS::SNPrintF(index, "!!! unknown edge type: %d ", edge.type()); |
157 } | 158 } |
158 edge.to()->Print(edge_prefix, edge_name, max_depth, indent + 2); | 159 edge.to()->Print(edge_prefix, edge_name, max_depth, indent + 2); |
159 } | 160 } |
160 } | 161 } |
161 | 162 |
162 | 163 |
163 const char* HeapEntry::TypeAsString() { | 164 const char* HeapEntry::TypeAsString() { |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1107 js_fun->literals_or_bindings(), | 1108 js_fun->literals_or_bindings(), |
1108 JSFunction::kLiteralsOffset); | 1109 JSFunction::kLiteralsOffset); |
1109 TagObject(shared_info, "(shared function info)"); | 1110 TagObject(shared_info, "(shared function info)"); |
1110 SetInternalReference(js_fun, entry, | 1111 SetInternalReference(js_fun, entry, |
1111 "shared", shared_info, | 1112 "shared", shared_info, |
1112 JSFunction::kSharedFunctionInfoOffset); | 1113 JSFunction::kSharedFunctionInfoOffset); |
1113 TagObject(js_fun->context(), "(context)"); | 1114 TagObject(js_fun->context(), "(context)"); |
1114 SetInternalReference(js_fun, entry, | 1115 SetInternalReference(js_fun, entry, |
1115 "context", js_fun->context(), | 1116 "context", js_fun->context(), |
1116 JSFunction::kContextOffset); | 1117 JSFunction::kContextOffset); |
1117 for (int i = JSFunction::kNonWeakFieldsEndOffset; | 1118 SetWeakReference(js_fun, entry, |
1118 i < JSFunction::kSize; | 1119 "next_function_link", js_fun->next_function_link(), |
1119 i += kPointerSize) { | 1120 JSFunction::kNextFunctionLinkOffset); |
1120 SetWeakReference(js_fun, entry, i, *HeapObject::RawField(js_fun, i), i); | 1121 STATIC_CHECK(JSFunction::kNextFunctionLinkOffset |
1121 } | 1122 == JSFunction::kNonWeakFieldsEndOffset); |
1123 STATIC_CHECK(JSFunction::kNextFunctionLinkOffset + kPointerSize | |
1124 == JSFunction::kSize); | |
1122 } else if (obj->IsGlobalObject()) { | 1125 } else if (obj->IsGlobalObject()) { |
1123 GlobalObject* global_obj = GlobalObject::cast(obj); | 1126 GlobalObject* global_obj = GlobalObject::cast(obj); |
1124 SetInternalReference(global_obj, entry, | 1127 SetInternalReference(global_obj, entry, |
1125 "builtins", global_obj->builtins(), | 1128 "builtins", global_obj->builtins(), |
1126 GlobalObject::kBuiltinsOffset); | 1129 GlobalObject::kBuiltinsOffset); |
1127 SetInternalReference(global_obj, entry, | 1130 SetInternalReference(global_obj, entry, |
1128 "native_context", global_obj->native_context(), | 1131 "native_context", global_obj->native_context(), |
1129 GlobalObject::kNativeContextOffset); | 1132 GlobalObject::kNativeContextOffset); |
1130 SetInternalReference(global_obj, entry, | 1133 SetInternalReference(global_obj, entry, |
1131 "global_receiver", global_obj->global_receiver(), | 1134 "global_receiver", global_obj->global_receiver(), |
1132 GlobalObject::kGlobalReceiverOffset); | 1135 GlobalObject::kGlobalReceiverOffset); |
1133 } else if (obj->IsJSArrayBufferView()) { | 1136 } else if (obj->IsJSArrayBufferView()) { |
1134 JSArrayBufferView* view = JSArrayBufferView::cast(obj); | 1137 JSArrayBufferView* view = JSArrayBufferView::cast(obj); |
1135 SetInternalReference(view, entry, "buffer", view->buffer(), | 1138 SetInternalReference(view, entry, "buffer", view->buffer(), |
1136 JSArrayBufferView::kBufferOffset); | 1139 JSArrayBufferView::kBufferOffset); |
1137 SetWeakReference(view, entry, 1, view->weak_next(), | 1140 SetWeakReference(view, entry, "weak_next", view->weak_next(), |
1138 JSArrayBufferView::kWeakNextOffset); | 1141 JSArrayBufferView::kWeakNextOffset); |
1139 } else if (obj->IsJSArrayBuffer()) { | 1142 } else if (obj->IsJSArrayBuffer()) { |
1140 JSArrayBuffer* buffer = JSArrayBuffer::cast(obj); | 1143 JSArrayBuffer* buffer = JSArrayBuffer::cast(obj); |
1141 SetWeakReference(buffer, entry, 1, buffer->weak_next(), | 1144 SetWeakReference(buffer, entry, "weak_next", buffer->weak_next(), |
1142 JSArrayBuffer::kWeakNextOffset); | 1145 JSArrayBuffer::kWeakNextOffset); |
1143 SetWeakReference(buffer, entry, 2, buffer->weak_first_view(), | 1146 SetWeakReference(buffer, entry, |
1147 "weak_first_view", buffer->weak_first_view(), | |
1144 JSArrayBuffer::kWeakFirstViewOffset); | 1148 JSArrayBuffer::kWeakFirstViewOffset); |
1145 } | 1149 } |
1146 TagObject(js_obj->properties(), "(object properties)"); | 1150 TagObject(js_obj->properties(), "(object properties)"); |
1147 SetInternalReference(obj, entry, | 1151 SetInternalReference(obj, entry, |
1148 "properties", js_obj->properties(), | 1152 "properties", js_obj->properties(), |
1149 JSObject::kPropertiesOffset); | 1153 JSObject::kPropertiesOffset); |
1150 TagObject(js_obj->elements(), "(object elements)"); | 1154 TagObject(js_obj->elements(), "(object elements)"); |
1151 SetInternalReference(obj, entry, | 1155 SetInternalReference(obj, entry, |
1152 "elements", js_obj->elements(), | 1156 "elements", js_obj->elements(), |
1153 JSObject::kElementsOffset); | 1157 JSObject::kElementsOffset); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1185 VariableMode mode; | 1189 VariableMode mode; |
1186 int idx = scope_info->FunctionContextSlotIndex(name, &mode); | 1190 int idx = scope_info->FunctionContextSlotIndex(name, &mode); |
1187 if (idx >= 0) { | 1191 if (idx >= 0) { |
1188 SetContextReference(context, entry, name, context->get(idx), | 1192 SetContextReference(context, entry, name, context->get(idx), |
1189 Context::OffsetOfElementAt(idx)); | 1193 Context::OffsetOfElementAt(idx)); |
1190 } | 1194 } |
1191 } | 1195 } |
1192 } | 1196 } |
1193 | 1197 |
1194 #define EXTRACT_CONTEXT_FIELD(index, type, name) \ | 1198 #define EXTRACT_CONTEXT_FIELD(index, type, name) \ |
1195 SetInternalReference(context, entry, #name, context->get(Context::index), \ | 1199 if (Context::index < Context::FIRST_WEAK_SLOT) { \ |
1196 FixedArray::OffsetOfElementAt(Context::index)); | 1200 SetInternalReference(context, entry, #name, context->get(Context::index), \ |
1201 FixedArray::OffsetOfElementAt(Context::index)); \ | |
1202 } else { \ | |
1203 SetWeakReference(context, entry, #name, context->get(Context::index), \ | |
1204 FixedArray::OffsetOfElementAt(Context::index)); \ | |
1205 } | |
1197 EXTRACT_CONTEXT_FIELD(CLOSURE_INDEX, JSFunction, closure); | 1206 EXTRACT_CONTEXT_FIELD(CLOSURE_INDEX, JSFunction, closure); |
1198 EXTRACT_CONTEXT_FIELD(PREVIOUS_INDEX, Context, previous); | 1207 EXTRACT_CONTEXT_FIELD(PREVIOUS_INDEX, Context, previous); |
1199 EXTRACT_CONTEXT_FIELD(EXTENSION_INDEX, Object, extension); | 1208 EXTRACT_CONTEXT_FIELD(EXTENSION_INDEX, Object, extension); |
1200 EXTRACT_CONTEXT_FIELD(GLOBAL_OBJECT_INDEX, GlobalObject, global); | 1209 EXTRACT_CONTEXT_FIELD(GLOBAL_OBJECT_INDEX, GlobalObject, global); |
1201 if (context->IsNativeContext()) { | 1210 if (context->IsNativeContext()) { |
1202 TagObject(context->jsfunction_result_caches(), | 1211 TagObject(context->jsfunction_result_caches(), |
1203 "(context func. result caches)"); | 1212 "(context func. result caches)"); |
1204 TagObject(context->normalized_map_cache(), "(context norm. map cache)"); | 1213 TagObject(context->normalized_map_cache(), "(context norm. map cache)"); |
1205 TagObject(context->runtime_context(), "(runtime context)"); | 1214 TagObject(context->runtime_context(), "(runtime context)"); |
1206 TagObject(context->embedder_data(), "(context data)"); | 1215 TagObject(context->embedder_data(), "(context data)"); |
1207 NATIVE_CONTEXT_FIELDS(EXTRACT_CONTEXT_FIELD); | 1216 NATIVE_CONTEXT_FIELDS(EXTRACT_CONTEXT_FIELD); |
1217 EXTRACT_CONTEXT_FIELD(OPTIMIZED_FUNCTIONS_LIST, , optimized_functions_list); | |
tfarina
2014/01/27 01:05:29
looks like this broke the clang build on linux x64
alph
2014/01/27 09:09:21
Strange, I also use clang and it compiles just fin
| |
1218 EXTRACT_CONTEXT_FIELD(OPTIMIZED_CODE_LIST, , optimized_code_list); | |
1219 EXTRACT_CONTEXT_FIELD(DEOPTIMIZED_CODE_LIST, , deoptimized_code_list); | |
1220 EXTRACT_CONTEXT_FIELD(NEXT_CONTEXT_LINK, , next_context_link); | |
1208 #undef EXTRACT_CONTEXT_FIELD | 1221 #undef EXTRACT_CONTEXT_FIELD |
1209 for (int i = Context::FIRST_WEAK_SLOT; | 1222 STATIC_CHECK(Context::OPTIMIZED_FUNCTIONS_LIST == Context::FIRST_WEAK_SLOT); |
1210 i < Context::NATIVE_CONTEXT_SLOTS; | 1223 STATIC_CHECK(Context::NEXT_CONTEXT_LINK + 1 |
1211 ++i) { | 1224 == Context::NATIVE_CONTEXT_SLOTS); |
1212 SetWeakReference(context, entry, i, context->get(i), | 1225 STATIC_CHECK(Context::FIRST_WEAK_SLOT + 5 == Context::NATIVE_CONTEXT_SLOTS); |
1213 FixedArray::OffsetOfElementAt(i)); | |
1214 } | |
1215 } | 1226 } |
1216 } | 1227 } |
1217 | 1228 |
1218 | 1229 |
1219 void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) { | 1230 void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) { |
1220 if (map->HasTransitionArray()) { | 1231 if (map->HasTransitionArray()) { |
1221 TransitionArray* transitions = map->transitions(); | 1232 TransitionArray* transitions = map->transitions(); |
1222 int transitions_entry = GetEntry(transitions)->index(); | 1233 int transitions_entry = GetEntry(transitions)->index(); |
1223 Object* back_pointer = transitions->back_pointer_storage(); | 1234 Object* back_pointer = transitions->back_pointer_storage(); |
1224 TagObject(back_pointer, "(back pointer)"); | 1235 TagObject(back_pointer, "(back pointer)"); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1298 SetInternalReference(obj, entry, | 1309 SetInternalReference(obj, entry, |
1299 "debug_info", shared->debug_info(), | 1310 "debug_info", shared->debug_info(), |
1300 SharedFunctionInfo::kDebugInfoOffset); | 1311 SharedFunctionInfo::kDebugInfoOffset); |
1301 SetInternalReference(obj, entry, | 1312 SetInternalReference(obj, entry, |
1302 "inferred_name", shared->inferred_name(), | 1313 "inferred_name", shared->inferred_name(), |
1303 SharedFunctionInfo::kInferredNameOffset); | 1314 SharedFunctionInfo::kInferredNameOffset); |
1304 SetInternalReference(obj, entry, | 1315 SetInternalReference(obj, entry, |
1305 "optimized_code_map", shared->optimized_code_map(), | 1316 "optimized_code_map", shared->optimized_code_map(), |
1306 SharedFunctionInfo::kOptimizedCodeMapOffset); | 1317 SharedFunctionInfo::kOptimizedCodeMapOffset); |
1307 SetWeakReference(obj, entry, | 1318 SetWeakReference(obj, entry, |
1308 1, shared->initial_map(), | 1319 "initial_map", shared->initial_map(), |
1309 SharedFunctionInfo::kInitialMapOffset); | 1320 SharedFunctionInfo::kInitialMapOffset); |
1310 } | 1321 } |
1311 | 1322 |
1312 | 1323 |
1313 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { | 1324 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { |
1314 HeapObject* obj = script; | 1325 HeapObject* obj = script; |
1315 SetInternalReference(obj, entry, | 1326 SetInternalReference(obj, entry, |
1316 "source", script->source(), | 1327 "source", script->source(), |
1317 Script::kSourceOffset); | 1328 Script::kSourceOffset); |
1318 SetInternalReference(obj, entry, | 1329 SetInternalReference(obj, entry, |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1828 filler_->SetIndexedReference(HeapGraphEdge::kHidden, | 1839 filler_->SetIndexedReference(HeapGraphEdge::kHidden, |
1829 parent_entry, | 1840 parent_entry, |
1830 index, | 1841 index, |
1831 child_entry); | 1842 child_entry); |
1832 } | 1843 } |
1833 } | 1844 } |
1834 | 1845 |
1835 | 1846 |
1836 void V8HeapExplorer::SetWeakReference(HeapObject* parent_obj, | 1847 void V8HeapExplorer::SetWeakReference(HeapObject* parent_obj, |
1837 int parent_entry, | 1848 int parent_entry, |
1838 int index, | 1849 const char* reference_name, |
1839 Object* child_obj, | 1850 Object* child_obj, |
1840 int field_offset) { | 1851 int field_offset) { |
1841 ASSERT(parent_entry == GetEntry(parent_obj)->index()); | 1852 ASSERT(parent_entry == GetEntry(parent_obj)->index()); |
1842 HeapEntry* child_entry = GetEntry(child_obj); | 1853 HeapEntry* child_entry = GetEntry(child_obj); |
1843 if (child_entry == NULL) return; | 1854 if (child_entry == NULL) return; |
1844 if (IsEssentialObject(child_obj)) { | 1855 if (IsEssentialObject(child_obj)) { |
1845 filler_->SetIndexedReference(HeapGraphEdge::kWeak, | 1856 filler_->SetNamedReference(HeapGraphEdge::kWeak, |
1846 parent_entry, | 1857 parent_entry, |
1847 index, | 1858 reference_name, |
1848 child_entry); | 1859 child_entry); |
1849 } | 1860 } |
1850 IndexedReferencesExtractor::MarkVisitedField(parent_obj, field_offset); | 1861 IndexedReferencesExtractor::MarkVisitedField(parent_obj, field_offset); |
1851 } | 1862 } |
1852 | 1863 |
1853 | 1864 |
1854 void V8HeapExplorer::SetPropertyReference(HeapObject* parent_obj, | 1865 void V8HeapExplorer::SetPropertyReference(HeapObject* parent_obj, |
1855 int parent_entry, | 1866 int parent_entry, |
1856 Name* reference_name, | 1867 Name* reference_name, |
1857 Object* child_obj, | 1868 Object* child_obj, |
1858 const char* name_format_string, | 1869 const char* name_format_string, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1910 HeapEntry* child_entry = GetEntry(child_obj); | 1921 HeapEntry* child_entry = GetEntry(child_obj); |
1911 if (child_entry != NULL) { | 1922 if (child_entry != NULL) { |
1912 const char* name = GetStrongGcSubrootName(child_obj); | 1923 const char* name = GetStrongGcSubrootName(child_obj); |
1913 if (name != NULL) { | 1924 if (name != NULL) { |
1914 filler_->SetNamedReference( | 1925 filler_->SetNamedReference( |
1915 HeapGraphEdge::kInternal, | 1926 HeapGraphEdge::kInternal, |
1916 snapshot_->gc_subroot(tag)->index(), | 1927 snapshot_->gc_subroot(tag)->index(), |
1917 name, | 1928 name, |
1918 child_entry); | 1929 child_entry); |
1919 } else { | 1930 } else { |
1920 filler_->SetIndexedAutoIndexReference( | 1931 if (is_weak) { |
1921 is_weak ? HeapGraphEdge::kWeak : HeapGraphEdge::kElement, | 1932 filler_->SetNamedAutoIndexReference( |
1922 snapshot_->gc_subroot(tag)->index(), | 1933 HeapGraphEdge::kWeak, |
1923 child_entry); | 1934 snapshot_->gc_subroot(tag)->index(), |
1935 child_entry); | |
1936 } else { | |
1937 filler_->SetIndexedAutoIndexReference( | |
1938 HeapGraphEdge::kElement, | |
1939 snapshot_->gc_subroot(tag)->index(), | |
1940 child_entry); | |
1941 } | |
1924 } | 1942 } |
1925 | 1943 |
1926 // Add a shortcut to JS global object reference at snapshot root. | 1944 // Add a shortcut to JS global object reference at snapshot root. |
1927 if (child_obj->IsNativeContext()) { | 1945 if (child_obj->IsNativeContext()) { |
1928 Context* context = Context::cast(child_obj); | 1946 Context* context = Context::cast(child_obj); |
1929 GlobalObject* global = context->global_object(); | 1947 GlobalObject* global = context->global_object(); |
1930 if (global->IsJSGlobalObject()) { | 1948 if (global->IsJSGlobalObject()) { |
1931 bool is_debug_object = false; | 1949 bool is_debug_object = false; |
1932 #ifdef ENABLE_DEBUGGER_SUPPORT | 1950 #ifdef ENABLE_DEBUGGER_SUPPORT |
1933 is_debug_object = heap_->isolate()->debug()->IsDebugGlobal(global); | 1951 is_debug_object = heap_->isolate()->debug()->IsDebugGlobal(global); |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2647 | 2665 |
2648 | 2666 |
2649 void HeapSnapshotJSONSerializer::SerializeEdge(HeapGraphEdge* edge, | 2667 void HeapSnapshotJSONSerializer::SerializeEdge(HeapGraphEdge* edge, |
2650 bool first_edge) { | 2668 bool first_edge) { |
2651 // The buffer needs space for 3 unsigned ints, 3 commas, \n and \0 | 2669 // The buffer needs space for 3 unsigned ints, 3 commas, \n and \0 |
2652 static const int kBufferSize = | 2670 static const int kBufferSize = |
2653 MaxDecimalDigitsIn<sizeof(unsigned)>::kUnsigned * 3 + 3 + 2; // NOLINT | 2671 MaxDecimalDigitsIn<sizeof(unsigned)>::kUnsigned * 3 + 3 + 2; // NOLINT |
2654 EmbeddedVector<char, kBufferSize> buffer; | 2672 EmbeddedVector<char, kBufferSize> buffer; |
2655 int edge_name_or_index = edge->type() == HeapGraphEdge::kElement | 2673 int edge_name_or_index = edge->type() == HeapGraphEdge::kElement |
2656 || edge->type() == HeapGraphEdge::kHidden | 2674 || edge->type() == HeapGraphEdge::kHidden |
2657 || edge->type() == HeapGraphEdge::kWeak | |
2658 ? edge->index() : GetStringId(edge->name()); | 2675 ? edge->index() : GetStringId(edge->name()); |
2659 int buffer_pos = 0; | 2676 int buffer_pos = 0; |
2660 if (!first_edge) { | 2677 if (!first_edge) { |
2661 buffer[buffer_pos++] = ','; | 2678 buffer[buffer_pos++] = ','; |
2662 } | 2679 } |
2663 buffer_pos = utoa(edge->type(), buffer, buffer_pos); | 2680 buffer_pos = utoa(edge->type(), buffer, buffer_pos); |
2664 buffer[buffer_pos++] = ','; | 2681 buffer[buffer_pos++] = ','; |
2665 buffer_pos = utoa(edge_name_or_index, buffer, buffer_pos); | 2682 buffer_pos = utoa(edge_name_or_index, buffer, buffer_pos); |
2666 buffer[buffer_pos++] = ','; | 2683 buffer[buffer_pos++] = ','; |
2667 buffer_pos = utoa(entry_index(edge->to()), buffer, buffer_pos); | 2684 buffer_pos = utoa(entry_index(edge->to()), buffer, buffer_pos); |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2966 writer_->AddString("\"<dummy>\""); | 2983 writer_->AddString("\"<dummy>\""); |
2967 for (int i = 1; i < sorted_strings.length(); ++i) { | 2984 for (int i = 1; i < sorted_strings.length(); ++i) { |
2968 writer_->AddCharacter(','); | 2985 writer_->AddCharacter(','); |
2969 SerializeString(sorted_strings[i]); | 2986 SerializeString(sorted_strings[i]); |
2970 if (writer_->aborted()) return; | 2987 if (writer_->aborted()) return; |
2971 } | 2988 } |
2972 } | 2989 } |
2973 | 2990 |
2974 | 2991 |
2975 } } // namespace v8::internal | 2992 } } // namespace v8::internal |
OLD | NEW |