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

Unified Diff: src/type-info.cc

Issue 8932004: Implement target cache for constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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
« src/ia32/full-codegen-ia32.cc ('K') | « src/type-info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-info.cc
diff --git a/src/type-info.cc b/src/type-info.cc
index e722d1452769a346587bfef140a70ec8dd3dbb7d..32145fe35f1a7ec5c52bb1fd724a3a539bca84fa 100644
--- a/src/type-info.cc
+++ b/src/type-info.cc
@@ -137,6 +137,12 @@ bool TypeFeedbackOracle::CallIsMonomorphic(Call* expr) {
}
+bool TypeFeedbackOracle::CallNewIsMonomorphic(CallNew* expr) {
+ Handle<Object> value = GetInfo(expr->id());
+ return value->IsJSFunction();
+}
+
+
Handle<Map> TypeFeedbackOracle::LoadMonomorphicReceiverType(Property* expr) {
ASSERT(LoadIsMonomorphicNormal(expr));
Handle<Object> map_or_code = GetInfo(expr->id());
@@ -562,9 +568,8 @@ void TypeFeedbackOracle::ProcessRelocInfos(ZoneList<RelocInfo>* infos) {
break;
case Code::STUB:
- if (target->major_key() == CodeStub::CallFunction &&
- target->has_function_cache()) {
- Object* value = CallFunctionStub::GetCachedValue(reloc_entry.pc());
+ if (CallStub::HasCache(target)) {
Vyacheslav Egorov (Chromium) 2012/01/23 10:39:52 It's a bit confusing that HasCache also verifies w
Michael Starzinger 2012/01/25 11:42:29 Done. No longer needed with new approach.
+ Object* value = CallStub::GetCachedValue(reloc_entry.pc());
if (value->IsJSFunction()) {
SetInfo(ast_id, value);
}
« src/ia32/full-codegen-ia32.cc ('K') | « src/type-info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698