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

Unified Diff: src/code-factory.cc

Issue 2182103002: [KeyedLoadIC] Support Smi "handlers" for simple field loads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 4 years, 5 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/code-factory.h ('k') | src/code-stub-assembler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index 862a8189a3595e59203746baaff115c29f16eae6..0fb5c108dc18f0dc879c262a0deee61c1b3c6636 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -49,6 +49,10 @@ Callable CodeFactory::LoadGlobalICInOptimizedCode(Isolate* isolate,
// static
Callable CodeFactory::KeyedLoadIC(Isolate* isolate) {
+ if (FLAG_tf_load_ic_stub) {
+ KeyedLoadICTrampolineTFStub stub(isolate);
+ return Callable(stub.GetCode(), LoadDescriptor(isolate));
+ }
KeyedLoadICTrampolineStub stub(isolate);
return Callable(stub.GetCode(), LoadDescriptor(isolate));
}
@@ -56,11 +60,15 @@ Callable CodeFactory::KeyedLoadIC(Isolate* isolate) {
// static
Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) {
- auto code =
- KeyedLoadIC::initialize_stub_in_optimized_code(isolate, kNoExtraICState);
+ auto code = KeyedLoadIC::initialize_stub_in_optimized_code(isolate);
return Callable(code, LoadWithVectorDescriptor(isolate));
}
+// static
+Callable CodeFactory::KeyedLoadIC_Megamorphic(Isolate* isolate) {
+ return Callable(isolate->builtins()->KeyedLoadIC_Megamorphic(),
+ LoadWithVectorDescriptor(isolate));
+}
// static
Callable CodeFactory::CallIC(Isolate* isolate, int argc,
« no previous file with comments | « src/code-factory.h ('k') | src/code-stub-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698