| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 } | 182 } |
| 183 | 183 |
| 184 // static | 184 // static |
| 185 Callable CodeFactory::ToString(Isolate* isolate) { | 185 Callable CodeFactory::ToString(Isolate* isolate) { |
| 186 ToStringStub stub(isolate); | 186 ToStringStub stub(isolate); |
| 187 return make_callable(stub); | 187 return make_callable(stub); |
| 188 } | 188 } |
| 189 | 189 |
| 190 // static | 190 // static |
| 191 Callable CodeFactory::ToName(Isolate* isolate) { | 191 Callable CodeFactory::ToName(Isolate* isolate) { |
| 192 ToNameStub stub(isolate); | 192 return Callable(isolate->builtins()->ToName(), |
| 193 return make_callable(stub); | 193 TypeConversionDescriptor(isolate)); |
| 194 } | 194 } |
| 195 | 195 |
| 196 // static | 196 // static |
| 197 Callable CodeFactory::ToInteger(Isolate* isolate) { | 197 Callable CodeFactory::ToInteger(Isolate* isolate) { |
| 198 ToIntegerStub stub(isolate); | 198 ToIntegerStub stub(isolate); |
| 199 return make_callable(stub); | 199 return make_callable(stub); |
| 200 } | 200 } |
| 201 | 201 |
| 202 // static | 202 // static |
| 203 Callable CodeFactory::ToLength(Isolate* isolate) { | 203 Callable CodeFactory::ToLength(Isolate* isolate) { |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 } | 614 } |
| 615 | 615 |
| 616 // static | 616 // static |
| 617 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 617 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
| 618 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 618 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
| 619 ContextOnlyDescriptor(isolate)); | 619 ContextOnlyDescriptor(isolate)); |
| 620 } | 620 } |
| 621 | 621 |
| 622 } // namespace internal | 622 } // namespace internal |
| 623 } // namespace v8 | 623 } // namespace v8 |
| OLD | NEW |