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

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

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | 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 15 matching lines...) Expand all
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 31
32 class CodeFactory FINAL { 32 class CodeFactory FINAL {
33 public: 33 public:
34 // Initial states for ICs. 34 // Initial states for ICs.
35 static Callable LoadIC(Isolate* isolate, ContextualMode mode); 35 static Callable LoadIC(Isolate* isolate, ContextualMode mode);
36 static Callable LoadICInOptimizedCode(Isolate* isolate, ContextualMode mode);
36 static Callable KeyedLoadIC(Isolate* isolate); 37 static Callable KeyedLoadIC(Isolate* isolate);
38 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate);
37 static Callable StoreIC(Isolate* isolate, StrictMode mode); 39 static Callable StoreIC(Isolate* isolate, StrictMode mode);
38 static Callable KeyedStoreIC(Isolate* isolate, StrictMode mode); 40 static Callable KeyedStoreIC(Isolate* isolate, StrictMode mode);
39 41
40 static Callable CompareIC(Isolate* isolate, Token::Value op); 42 static Callable CompareIC(Isolate* isolate, Token::Value op);
41 43
42 static Callable BinaryOpIC(Isolate* isolate, Token::Value op, 44 static Callable BinaryOpIC(Isolate* isolate, Token::Value op,
43 OverwriteMode mode = NO_OVERWRITE); 45 OverwriteMode mode = NO_OVERWRITE);
44 46
45 // Code stubs. Add methods here as needed to reduce dependency on 47 // Code stubs. Add methods here as needed to reduce dependency on
46 // code-stubs.h. 48 // code-stubs.h.
47 static Callable ToBoolean( 49 static Callable ToBoolean(
48 Isolate* isolate, ToBooleanStub::ResultMode mode, 50 Isolate* isolate, ToBooleanStub::ResultMode mode,
49 ToBooleanStub::Types types = ToBooleanStub::Types()); 51 ToBooleanStub::Types types = ToBooleanStub::Types());
50 52
51 static Callable ToNumber(Isolate* isolate); 53 static Callable ToNumber(Isolate* isolate);
52 54
53 static Callable StringAdd(Isolate* isolate, StringAddFlags flags, 55 static Callable StringAdd(Isolate* isolate, StringAddFlags flags,
54 PretenureFlag pretenure_flag); 56 PretenureFlag pretenure_flag);
55 57
56 static Callable CallFunction(Isolate* isolate, int argc, 58 static Callable CallFunction(Isolate* isolate, int argc,
57 CallFunctionFlags flags); 59 CallFunctionFlags flags);
58 }; 60 };
59 } 61 }
60 } 62 }
61 #endif // V8_CODE_FACTORY_H_ 63 #endif // V8_CODE_FACTORY_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/code-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698