OLD | NEW |
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 21 matching lines...) Expand all Loading... |
32 public: | 32 public: |
33 // CEntryStub has var-args semantics (all the arguments are passed on the | 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 | 34 // stack and the arguments count is passed via register) which currently |
35 // can't be expressed in CallInterfaceDescriptor. Therefore only the code | 35 // can't be expressed in CallInterfaceDescriptor. Therefore only the code |
36 // is exported here. | 36 // is exported here. |
37 static Handle<Code> RuntimeCEntry(Isolate* isolate, int result_size = 1); | 37 static Handle<Code> RuntimeCEntry(Isolate* isolate, int result_size = 1); |
38 | 38 |
39 // Initial states for ICs. | 39 // Initial states for ICs. |
40 static Callable LoadIC(Isolate* isolate); | 40 static Callable LoadIC(Isolate* isolate); |
41 static Callable LoadICInOptimizedCode(Isolate* isolate); | 41 static Callable LoadICInOptimizedCode(Isolate* isolate); |
| 42 static Callable LoadICProtoArray(Isolate* isolate, bool throw_if_nonexistent); |
42 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode); | 43 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode); |
43 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate, | 44 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate, |
44 TypeofMode typeof_mode); | 45 TypeofMode typeof_mode); |
45 static Callable KeyedLoadIC(Isolate* isolate); | 46 static Callable KeyedLoadIC(Isolate* isolate); |
46 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate); | 47 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate); |
47 static Callable KeyedLoadIC_Megamorphic(Isolate* isolate); | 48 static Callable KeyedLoadIC_Megamorphic(Isolate* isolate); |
48 static Callable CallIC(Isolate* isolate, | 49 static Callable CallIC(Isolate* isolate, |
49 ConvertReceiverMode mode = ConvertReceiverMode::kAny, | 50 ConvertReceiverMode mode = ConvertReceiverMode::kAny, |
50 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 51 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
51 static Callable CallICInOptimizedCode( | 52 static Callable CallICInOptimizedCode( |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 184 |
184 static Callable ArrayPush(Isolate* isolate); | 185 static Callable ArrayPush(Isolate* isolate); |
185 static Callable FunctionPrototypeBind(Isolate* isolate); | 186 static Callable FunctionPrototypeBind(Isolate* isolate); |
186 static Callable PromiseHandleReject(Isolate* isolate); | 187 static Callable PromiseHandleReject(Isolate* isolate); |
187 }; | 188 }; |
188 | 189 |
189 } // namespace internal | 190 } // namespace internal |
190 } // namespace v8 | 191 } // namespace v8 |
191 | 192 |
192 #endif // V8_CODE_FACTORY_H_ | 193 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |