| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 | 215 |
| 216 // static | 216 // static |
| 217 Callable CodeFactory::Typeof(Isolate* isolate) { | 217 Callable CodeFactory::Typeof(Isolate* isolate) { |
| 218 TypeofStub stub(isolate); | 218 TypeofStub stub(isolate); |
| 219 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 219 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 220 } | 220 } |
| 221 | 221 |
| 222 | 222 |
| 223 // static | 223 // static |
| 224 Callable CodeFactory::FastCloneRegExp(Isolate* isolate) { |
| 225 FastCloneRegExpStub stub(isolate); |
| 226 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 227 } |
| 228 |
| 229 |
| 230 // static |
| 224 Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) { | 231 Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) { |
| 225 // TODO(mstarzinger): Thread through AllocationSiteMode at some point. | 232 // TODO(mstarzinger): Thread through AllocationSiteMode at some point. |
| 226 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE); | 233 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE); |
| 227 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 234 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 228 } | 235 } |
| 229 | 236 |
| 230 | 237 |
| 231 // static | 238 // static |
| 232 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { | 239 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { |
| 233 FastCloneShallowObjectStub stub(isolate, length); | 240 FastCloneShallowObjectStub stub(isolate, length); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { | 336 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { |
| 330 // TODO(rmcilroy): Deal with runtime functions that return two values. | 337 // TODO(rmcilroy): Deal with runtime functions that return two values. |
| 331 // Note: If we ever use fpregs in the interpreter then we will need to | 338 // Note: If we ever use fpregs in the interpreter then we will need to |
| 332 // save fpregs too. | 339 // save fpregs too. |
| 333 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); | 340 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); |
| 334 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 341 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
| 335 } | 342 } |
| 336 | 343 |
| 337 } // namespace internal | 344 } // namespace internal |
| 338 } // namespace v8 | 345 } // namespace v8 |
| OLD | NEW |