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

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

Issue 1227893005: TypeofMode replaces TypeofState and ContextualMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 5 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 unified diff | Download patch
« 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 14 matching lines...) Expand all
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 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, TypeofMode typeof_mode,
36 LanguageMode language_mode); 36 LanguageMode language_mode);
37 static Callable LoadICInOptimizedCode(Isolate* isolate, ContextualMode mode, 37 static Callable LoadICInOptimizedCode(Isolate* isolate,
38 TypeofMode typeof_mode,
38 LanguageMode language_mode, 39 LanguageMode language_mode,
39 InlineCacheState initialization_state); 40 InlineCacheState initialization_state);
40 static Callable KeyedLoadIC(Isolate* isolate, LanguageMode language_mode); 41 static Callable KeyedLoadIC(Isolate* isolate, LanguageMode language_mode);
41 static Callable KeyedLoadICInOptimizedCode( 42 static Callable KeyedLoadICInOptimizedCode(
42 Isolate* isolate, LanguageMode language_mode, 43 Isolate* isolate, LanguageMode language_mode,
43 InlineCacheState initialization_state); 44 InlineCacheState initialization_state);
44 static Callable CallIC(Isolate* isolate, int argc, 45 static Callable CallIC(Isolate* isolate, int argc,
45 CallICState::CallType call_type); 46 CallICState::CallType call_type);
46 static Callable CallICInOptimizedCode(Isolate* isolate, int argc, 47 static Callable CallICInOptimizedCode(Isolate* isolate, int argc,
47 CallICState::CallType call_type); 48 CallICState::CallType call_type);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 static Callable AllocateHeapNumber(Isolate* isolate); 88 static Callable AllocateHeapNumber(Isolate* isolate);
88 89
89 static Callable CallFunction(Isolate* isolate, int argc, 90 static Callable CallFunction(Isolate* isolate, int argc,
90 CallFunctionFlags flags); 91 CallFunctionFlags flags);
91 }; 92 };
92 93
93 } // namespace internal 94 } // namespace internal
94 } // namespace v8 95 } // namespace v8
95 96
96 #endif // V8_CODE_FACTORY_H_ 97 #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