| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 // static | 98 // static |
| 99 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, | 99 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, |
| 100 PretenureFlag pretenure_flag) { | 100 PretenureFlag pretenure_flag) { |
| 101 StringAddStub stub(isolate, flags, pretenure_flag); | 101 StringAddStub stub(isolate, flags, pretenure_flag); |
| 102 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 102 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 103 } | 103 } |
| 104 | 104 |
| 105 | 105 |
| 106 // static | 106 // static |
| 107 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { |
| 108 AllocateHeapNumberStub stub(isolate); |
| 109 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 110 } |
| 111 |
| 112 |
| 113 // static |
| 107 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, | 114 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, |
| 108 CallFunctionFlags flags) { | 115 CallFunctionFlags flags) { |
| 109 CallFunctionStub stub(isolate, argc, flags); | 116 CallFunctionStub stub(isolate, argc, flags); |
| 110 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 117 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 111 } | 118 } |
| 112 | 119 |
| 113 } // namespace internal | 120 } // namespace internal |
| 114 } // namespace v8 | 121 } // namespace v8 |
| OLD | NEW |