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

Unified Diff: src/ic.cc

Issue 2493001: - Continue removing [static] qualifier from StubCache. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 7 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/ia32/ic-ia32.cc ('k') | src/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.cc
===================================================================
--- src/ic.cc (revision 4776)
+++ src/ic.cc (working copy)
@@ -499,7 +499,8 @@
// This is the first time we execute this inline cache.
// Set the target to the pre monomorphic stub to delay
// setting the monomorphic state.
- code = StubCache::ComputeCallPreMonomorphic(argc, in_loop);
+ code = Isolate::Current()->stub_cache()->ComputeCallPreMonomorphic(argc,
+ in_loop);
} else if (state == MONOMORPHIC) {
code = Isolate::Current()->stub_cache()->ComputeCallMegamorphic(argc,
in_loop);
@@ -624,7 +625,7 @@
Code* target = NULL;
target = Builtins::builtin(Builtins::LoadIC_StringLength);
set_target(target);
- StubCache::Set(*name, map, target);
+ Isolate::Current()->stub_cache()->Set(*name, map, target);
return Smi::FromInt(String::cast(*object)->length());
}
@@ -639,7 +640,7 @@
Code* target = Builtins::builtin(Builtins::LoadIC_ArrayLength);
set_target(target);
- StubCache::Set(*name, map, target);
+ Isolate::Current()->stub_cache()->Set(*name, map, target);
return JSArray::cast(*object)->length();
}
@@ -651,7 +652,9 @@
#endif
Code* target = Builtins::builtin(Builtins::LoadIC_FunctionPrototype);
set_target(target);
- StubCache::Set(*name, HeapObject::cast(*object)->map(), target);
+ Isolate::Current()->stub_cache()->Set(*name,
+ HeapObject::cast(*object)->map(),
+ target);
return Accessors::FunctionGetPrototype(*object, 0);
}
}
@@ -1110,7 +1113,9 @@
#endif
Code* target = Builtins::builtin(Builtins::StoreIC_ArrayLength);
set_target(target);
- StubCache::Set(*name, HeapObject::cast(*object)->map(), target);
+ Isolate::Current()->stub_cache()->Set(*name,
+ HeapObject::cast(*object)->map(),
+ target);
return receiver->SetProperty(*name, *value, NONE);
}
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698