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 173 matching lines...) Loading... |
184 } | 184 } |
185 | 185 |
186 // static | 186 // static |
187 Callable CodeFactory::StringToNumber(Isolate* isolate) { | 187 Callable CodeFactory::StringToNumber(Isolate* isolate) { |
188 return Callable(isolate->builtins()->StringToNumber(), | 188 return Callable(isolate->builtins()->StringToNumber(), |
189 TypeConversionDescriptor(isolate)); | 189 TypeConversionDescriptor(isolate)); |
190 } | 190 } |
191 | 191 |
192 // static | 192 // static |
193 Callable CodeFactory::ToString(Isolate* isolate) { | 193 Callable CodeFactory::ToString(Isolate* isolate) { |
194 ToStringStub stub(isolate); | 194 return Callable(isolate->builtins()->ToString(), |
195 return make_callable(stub); | 195 TypeConversionDescriptor(isolate)); |
196 } | 196 } |
197 | 197 |
198 // static | 198 // static |
199 Callable CodeFactory::ToName(Isolate* isolate) { | 199 Callable CodeFactory::ToName(Isolate* isolate) { |
200 return Callable(isolate->builtins()->ToName(), | 200 return Callable(isolate->builtins()->ToName(), |
201 TypeConversionDescriptor(isolate)); | 201 TypeConversionDescriptor(isolate)); |
202 } | 202 } |
203 | 203 |
204 // static | 204 // static |
205 Callable CodeFactory::ToInteger(Isolate* isolate) { | 205 Callable CodeFactory::ToInteger(Isolate* isolate) { |
(...skipping 422 matching lines...) Loading... |
628 } | 628 } |
629 | 629 |
630 // static | 630 // static |
631 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 631 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
632 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 632 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
633 ContextOnlyDescriptor(isolate)); | 633 ContextOnlyDescriptor(isolate)); |
634 } | 634 } |
635 | 635 |
636 } // namespace internal | 636 } // namespace internal |
637 } // namespace v8 | 637 } // namespace v8 |
OLD | NEW |