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

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

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE. Created 3 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
OLDNEW
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
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 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 for (int i = 1; i < sorted_strings.length(); ++i) { 3116 for (int i = 1; i < sorted_strings.length(); ++i) {
3116 writer_->AddCharacter(','); 3117 writer_->AddCharacter(',');
3117 SerializeString(sorted_strings[i]); 3118 SerializeString(sorted_strings[i]);
3118 if (writer_->aborted()) return; 3119 if (writer_->aborted()) return;
3119 } 3120 }
3120 } 3121 }
3121 3122
3122 3123
3123 } // namespace internal 3124 } // namespace internal
3124 } // namespace v8 3125 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698