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

Unified Diff: src/code-factory.cc

Issue 633423002: Teach TurboFan to call vector-based ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed nits. Created 6 years, 2 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/compiler/ast-graph-builder.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 c969c8f1c1b4c0f3ec0a52948a6078cd75099e73..ae94fd5e9269c3b8ea5e254ed8acbcd59c255d94 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -20,13 +20,35 @@ Callable CodeFactory::LoadIC(Isolate* isolate, ContextualMode mode) {
// static
+Callable CodeFactory::LoadICInOptimizedCode(Isolate* isolate,
+ ContextualMode mode) {
+ if (FLAG_vector_ics) {
+ return Callable(LoadIC::initialize_stub_in_optimized_code(
+ isolate, LoadICState(mode).GetExtraICState()),
+ VectorLoadICDescriptor(isolate));
+ }
+ return CodeFactory::LoadIC(isolate, mode);
+}
+
+
+// static
Callable CodeFactory::KeyedLoadIC(Isolate* isolate) {
- return Callable(isolate->builtins()->KeyedLoadIC_Initialize(),
+ return Callable(KeyedLoadIC::initialize_stub(isolate),
LoadDescriptor(isolate));
}
// static
+Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) {
+ if (FLAG_vector_ics) {
+ return Callable(KeyedLoadIC::initialize_stub_in_optimized_code(isolate),
+ VectorLoadICDescriptor(isolate));
+ }
+ return CodeFactory::KeyedLoadIC(isolate);
+}
+
+
+// static
Callable CodeFactory::StoreIC(Isolate* isolate, StrictMode mode) {
return Callable(StoreIC::initialize_stub(isolate, mode),
StoreDescriptor(isolate));
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/ast-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698