| 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_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
| 6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_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/code-stub-assembler.h" | 10 #include "src/code-stub-assembler.h" |
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1075 | 1075 |
| 1076 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); | 1076 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewClosure); |
| 1077 DEFINE_TURBOFAN_CODE_STUB(FastNewClosure, TurboFanCodeStub); | 1077 DEFINE_TURBOFAN_CODE_STUB(FastNewClosure, TurboFanCodeStub); |
| 1078 }; | 1078 }; |
| 1079 | 1079 |
| 1080 class FastNewFunctionContextStub final : public TurboFanCodeStub { | 1080 class FastNewFunctionContextStub final : public TurboFanCodeStub { |
| 1081 public: | 1081 public: |
| 1082 explicit FastNewFunctionContextStub(Isolate* isolate) | 1082 explicit FastNewFunctionContextStub(Isolate* isolate) |
| 1083 : TurboFanCodeStub(isolate) {} | 1083 : TurboFanCodeStub(isolate) {} |
| 1084 | 1084 |
| 1085 static compiler::Node* Generate(CodeStubAssembler* assembler, |
| 1086 compiler::Node* function, |
| 1087 compiler::Node* slots, |
| 1088 compiler::Node* context); |
| 1089 |
| 1085 private: | 1090 private: |
| 1086 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewFunctionContext); | 1091 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewFunctionContext); |
| 1087 DEFINE_TURBOFAN_CODE_STUB(FastNewFunctionContext, TurboFanCodeStub); | 1092 DEFINE_TURBOFAN_CODE_STUB(FastNewFunctionContext, TurboFanCodeStub); |
| 1088 }; | 1093 }; |
| 1089 | 1094 |
| 1090 | 1095 |
| 1091 class FastNewObjectStub final : public PlatformCodeStub { | 1096 class FastNewObjectStub final : public PlatformCodeStub { |
| 1092 public: | 1097 public: |
| 1093 explicit FastNewObjectStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 1098 explicit FastNewObjectStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 1094 | 1099 |
| (...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3136 #undef DEFINE_HYDROGEN_CODE_STUB | 3141 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3137 #undef DEFINE_CODE_STUB | 3142 #undef DEFINE_CODE_STUB |
| 3138 #undef DEFINE_CODE_STUB_BASE | 3143 #undef DEFINE_CODE_STUB_BASE |
| 3139 | 3144 |
| 3140 extern Representation RepresentationFromType(Type* type); | 3145 extern Representation RepresentationFromType(Type* type); |
| 3141 | 3146 |
| 3142 } // namespace internal | 3147 } // namespace internal |
| 3143 } // namespace v8 | 3148 } // namespace v8 |
| 3144 | 3149 |
| 3145 #endif // V8_CODE_STUBS_H_ | 3150 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |