| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 // static | 138 // static |
| 139 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, | 139 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, |
| 140 PretenureFlag pretenure_flag) { | 140 PretenureFlag pretenure_flag) { |
| 141 StringAddStub stub(isolate, flags, pretenure_flag); | 141 StringAddStub stub(isolate, flags, pretenure_flag); |
| 142 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 142 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 143 } | 143 } |
| 144 | 144 |
| 145 | 145 |
| 146 // static | 146 // static |
| 147 Callable CodeFactory::Typeof(Isolate* isolate) { |
| 148 TypeofStub stub(isolate); |
| 149 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 150 } |
| 151 |
| 152 |
| 153 // static |
| 147 Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) { | 154 Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) { |
| 148 // TODO(mstarzinger): Thread through AllocationSiteMode at some point. | 155 // TODO(mstarzinger): Thread through AllocationSiteMode at some point. |
| 149 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE); | 156 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE); |
| 150 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 157 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 151 } | 158 } |
| 152 | 159 |
| 153 | 160 |
| 154 // static | 161 // static |
| 155 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { | 162 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { |
| 156 FastCloneShallowObjectStub stub(isolate, length); | 163 FastCloneShallowObjectStub stub(isolate, length); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 176 | 183 |
| 177 // static | 184 // static |
| 178 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, | 185 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, |
| 179 CallFunctionFlags flags) { | 186 CallFunctionFlags flags) { |
| 180 CallFunctionStub stub(isolate, argc, flags); | 187 CallFunctionStub stub(isolate, argc, flags); |
| 181 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 188 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 182 } | 189 } |
| 183 | 190 |
| 184 } // namespace internal | 191 } // namespace internal |
| 185 } // namespace v8 | 192 } // namespace v8 |
| OLD | NEW |