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

Side by Side Diff: src/code-factory.h

Issue 2580823002: [turbofan] Combine family of CallRuntime() methods into single imeplementation. (Closed)
Patch Set: Addressing comments and fixing Windows builds Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/code-factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODE_FACTORY_H_ 5 #ifndef V8_CODE_FACTORY_H_
6 #define V8_CODE_FACTORY_H_ 6 #define V8_CODE_FACTORY_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 12 matching lines...) Expand all
23 Handle<Code> code() const { return code_; } 23 Handle<Code> code() const { return code_; }
24 CallInterfaceDescriptor descriptor() const { return descriptor_; } 24 CallInterfaceDescriptor descriptor() const { return descriptor_; }
25 25
26 private: 26 private:
27 const Handle<Code> code_; 27 const Handle<Code> code_;
28 const CallInterfaceDescriptor descriptor_; 28 const CallInterfaceDescriptor descriptor_;
29 }; 29 };
30 30
31 class V8_EXPORT_PRIVATE CodeFactory final { 31 class V8_EXPORT_PRIVATE CodeFactory final {
32 public: 32 public:
33 // CEntryStub has var-args semantics (all the arguments are passed on the
34 // stack and the arguments count is passed via register) which currently
35 // can't be expressed in CallInterfaceDescriptor. Therefore only the code
36 // is exported here.
37 static Handle<Code> RuntimeCEntry(Isolate* isolate, int result_size = 1);
38
33 // Initial states for ICs. 39 // Initial states for ICs.
34 static Callable LoadIC(Isolate* isolate); 40 static Callable LoadIC(Isolate* isolate);
35 static Callable LoadICInOptimizedCode(Isolate* isolate); 41 static Callable LoadICInOptimizedCode(Isolate* isolate);
36 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode); 42 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode);
37 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate, 43 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate,
38 TypeofMode typeof_mode); 44 TypeofMode typeof_mode);
39 static Callable KeyedLoadIC(Isolate* isolate); 45 static Callable KeyedLoadIC(Isolate* isolate);
40 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate); 46 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate);
41 static Callable KeyedLoadIC_Megamorphic(Isolate* isolate); 47 static Callable KeyedLoadIC_Megamorphic(Isolate* isolate);
42 static Callable CallIC(Isolate* isolate, 48 static Callable CallIC(Isolate* isolate,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 178
173 static Callable ArrayPush(Isolate* isolate); 179 static Callable ArrayPush(Isolate* isolate);
174 static Callable FunctionPrototypeBind(Isolate* isolate); 180 static Callable FunctionPrototypeBind(Isolate* isolate);
175 static Callable PromiseHandleReject(Isolate* isolate); 181 static Callable PromiseHandleReject(Isolate* isolate);
176 }; 182 };
177 183
178 } // namespace internal 184 } // namespace internal
179 } // namespace v8 185 } // namespace v8
180 186
181 #endif // V8_CODE_FACTORY_H_ 187 #endif // V8_CODE_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698