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

Unified Diff: src/objects-inl.h

Issue 2672363002: Link type feedback vectors to the shared function info. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index a184bf4017bbe188c0fc96840bb930d65c639006..1579d2e3f0b19ef84e0b8ace616f0122dff6783c 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -6591,12 +6591,7 @@ void JSFunction::ReplaceCode(Code* code) {
}
bool JSFunction::has_feedback_vector() const {
- SharedFunctionInfo* shared = this->shared();
-
- return (feedback_vector_cell()->value() !=
- shared->GetIsolate()->heap()->empty_feedback_vector() ||
- (shared->feedback_metadata()->slot_count() == 0 &&
- shared->num_literals() == 0));
+ return !feedback_vector_cell()->value()->IsUndefined(GetIsolate());
}
Context* JSFunction::context() {
« no previous file with comments | « src/objects.cc ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698