Chromium Code Reviews| 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 12 matching lines...) Expand all Loading... | |
| 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 static Handle<Code> RuntimeCEntry(Isolate* isolate, int result_size = 1); | |
|
Michael Starzinger
2016/12/15 14:39:58
Can we leave a comment here explaining that the {C
| |
| 34 | |
| 33 // Initial states for ICs. | 35 // Initial states for ICs. |
| 34 static Callable LoadIC(Isolate* isolate); | 36 static Callable LoadIC(Isolate* isolate); |
| 35 static Callable LoadICInOptimizedCode(Isolate* isolate); | 37 static Callable LoadICInOptimizedCode(Isolate* isolate); |
| 36 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode); | 38 static Callable LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode); |
| 37 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate, | 39 static Callable LoadGlobalICInOptimizedCode(Isolate* isolate, |
| 38 TypeofMode typeof_mode); | 40 TypeofMode typeof_mode); |
| 39 static Callable KeyedLoadIC(Isolate* isolate); | 41 static Callable KeyedLoadIC(Isolate* isolate); |
| 40 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate); | 42 static Callable KeyedLoadICInOptimizedCode(Isolate* isolate); |
| 41 static Callable KeyedLoadIC_Megamorphic(Isolate* isolate); | 43 static Callable KeyedLoadIC_Megamorphic(Isolate* isolate); |
| 42 static Callable CallIC(Isolate* isolate, | 44 static Callable CallIC(Isolate* isolate, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 | 174 |
| 173 static Callable ArrayPush(Isolate* isolate); | 175 static Callable ArrayPush(Isolate* isolate); |
| 174 static Callable FunctionPrototypeBind(Isolate* isolate); | 176 static Callable FunctionPrototypeBind(Isolate* isolate); |
| 175 static Callable PromiseHandleReject(Isolate* isolate); | 177 static Callable PromiseHandleReject(Isolate* isolate); |
| 176 }; | 178 }; |
| 177 | 179 |
| 178 } // namespace internal | 180 } // namespace internal |
| 179 } // namespace v8 | 181 } // namespace v8 |
| 180 | 182 |
| 181 #endif // V8_CODE_FACTORY_H_ | 183 #endif // V8_CODE_FACTORY_H_ |
| OLD | NEW |