| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 | 170 |
| 171 // static | 171 // static |
| 172 Callable CodeFactory::ToNumber(Isolate* isolate) { | 172 Callable CodeFactory::ToNumber(Isolate* isolate) { |
| 173 ToNumberStub stub(isolate); | 173 ToNumberStub stub(isolate); |
| 174 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 174 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 175 } | 175 } |
| 176 | 176 |
| 177 | 177 |
| 178 // static | 178 // static |
| 179 Callable CodeFactory::ToString(Isolate* isolate) { |
| 180 ToStringStub stub(isolate); |
| 181 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 182 } |
| 183 |
| 184 |
| 185 // static |
| 179 Callable CodeFactory::ToObject(Isolate* isolate) { | 186 Callable CodeFactory::ToObject(Isolate* isolate) { |
| 180 ToObjectStub stub(isolate); | 187 ToObjectStub stub(isolate); |
| 181 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 188 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 182 } | 189 } |
| 183 | 190 |
| 184 | 191 |
| 185 // static | 192 // static |
| 186 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, | 193 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, |
| 187 PretenureFlag pretenure_flag) { | 194 PretenureFlag pretenure_flag) { |
| 188 StringAddStub stub(isolate, flags, pretenure_flag); | 195 StringAddStub stub(isolate, flags, pretenure_flag); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 237 |
| 231 // static | 238 // static |
| 232 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, | 239 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, |
| 233 CallFunctionFlags flags) { | 240 CallFunctionFlags flags) { |
| 234 CallFunctionStub stub(isolate, argc, flags); | 241 CallFunctionStub stub(isolate, argc, flags); |
| 235 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 242 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 236 } | 243 } |
| 237 | 244 |
| 238 } // namespace internal | 245 } // namespace internal |
| 239 } // namespace v8 | 246 } // namespace v8 |
| OLD | NEW |