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

Unified Diff: src/ast.cc

Issue 1023103003: If CallNew targets a constant global, set its state to monomorphic (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/ast.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index 1ef5ab3aac4b1fb560a93bf4144dcdeaded77b5e..c907df19b45a1b3641ae16d215cd2d262c4db0a6 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -622,24 +622,6 @@ Call::CallType Call::GetCallType(Isolate* isolate) const {
}
-bool Call::ComputeGlobalTarget(Handle<GlobalObject> global,
- LookupIterator* it) {
- target_ = Handle<JSFunction>::null();
- DCHECK(it->IsFound() && it->GetHolder<JSObject>().is_identical_to(global));
- Handle<PropertyCell> cell = it->GetPropertyCell();
- if (cell->value()->IsJSFunction()) {
- Handle<JSFunction> candidate(JSFunction::cast(cell->value()));
- // If the function is in new space we assume it's more likely to
- // change and thus prefer the general IC code.
- if (!it->isolate()->heap()->InNewSpace(*candidate)) {
- target_ = candidate;
- return true;
- }
- }
- return false;
-}
-
-
// ----------------------------------------------------------------------------
// Implementation of AstVisitor
« no previous file with comments | « src/ast.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698