OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/profiler/heap-snapshot-generator.h" | 5 #include "src/profiler/heap-snapshot-generator.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/conversions.h" | 10 #include "src/conversions.h" |
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 } else { | 1105 } else { |
1106 SetPropertyReference( | 1106 SetPropertyReference( |
1107 obj, entry, | 1107 obj, entry, |
1108 heap_->prototype_string(), js_fun->prototype()); | 1108 heap_->prototype_string(), js_fun->prototype()); |
1109 SetInternalReference( | 1109 SetInternalReference( |
1110 obj, entry, "initial_map", proto_or_map, | 1110 obj, entry, "initial_map", proto_or_map, |
1111 JSFunction::kPrototypeOrInitialMapOffset); | 1111 JSFunction::kPrototypeOrInitialMapOffset); |
1112 } | 1112 } |
1113 } | 1113 } |
1114 SharedFunctionInfo* shared_info = js_fun->shared(); | 1114 SharedFunctionInfo* shared_info = js_fun->shared(); |
1115 TagObject(js_fun->feedback_vector(), "(function feedback vector)"); | 1115 TagObject(js_fun->feedback_vector_cell(), |
1116 SetInternalReference(js_fun, entry, "feedback_vector", | 1116 "(function feedback vector cell)"); |
1117 js_fun->feedback_vector(), | 1117 SetInternalReference(js_fun, entry, "feedback_vector_cell", |
| 1118 js_fun->feedback_vector_cell(), |
1118 JSFunction::kFeedbackVectorOffset); | 1119 JSFunction::kFeedbackVectorOffset); |
1119 TagObject(shared_info, "(shared function info)"); | 1120 TagObject(shared_info, "(shared function info)"); |
1120 SetInternalReference(js_fun, entry, | 1121 SetInternalReference(js_fun, entry, |
1121 "shared", shared_info, | 1122 "shared", shared_info, |
1122 JSFunction::kSharedFunctionInfoOffset); | 1123 JSFunction::kSharedFunctionInfoOffset); |
1123 TagObject(js_fun->context(), "(context)"); | 1124 TagObject(js_fun->context(), "(context)"); |
1124 SetInternalReference(js_fun, entry, | 1125 SetInternalReference(js_fun, entry, |
1125 "context", js_fun->context(), | 1126 "context", js_fun->context(), |
1126 JSFunction::kContextOffset); | 1127 JSFunction::kContextOffset); |
1127 // Ensure no new weak references appeared in JSFunction. | 1128 // Ensure no new weak references appeared in JSFunction. |
(...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3131 for (int i = 1; i < sorted_strings.length(); ++i) { | 3132 for (int i = 1; i < sorted_strings.length(); ++i) { |
3132 writer_->AddCharacter(','); | 3133 writer_->AddCharacter(','); |
3133 SerializeString(sorted_strings[i]); | 3134 SerializeString(sorted_strings[i]); |
3134 if (writer_->aborted()) return; | 3135 if (writer_->aborted()) return; |
3135 } | 3136 } |
3136 } | 3137 } |
3137 | 3138 |
3138 | 3139 |
3139 } // namespace internal | 3140 } // namespace internal |
3140 } // namespace v8 | 3141 } // namespace v8 |
OLD | NEW |