| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 305 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 306 } | 306 } |
| 307 | 307 |
| 308 // static | 308 // static |
| 309 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { | 309 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { |
| 310 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(), | 310 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(), |
| 311 ResumeGeneratorDescriptor(isolate)); | 311 ResumeGeneratorDescriptor(isolate)); |
| 312 } | 312 } |
| 313 | 313 |
| 314 // static | 314 // static |
| 315 Callable CodeFactory::FrameDropperTrampoline(Isolate* isolate) { |
| 316 return Callable(isolate->builtins()->FrameDropperTrampoline(), |
| 317 FrameDropperTrampolineDescriptor(isolate)); |
| 318 } |
| 319 |
| 320 // static |
| 321 Callable CodeFactory::HandleDebuggerStatement(Isolate* isolate) { |
| 322 return Callable(isolate->builtins()->HandleDebuggerStatement(), |
| 323 ContextOnlyDescriptor(isolate)); |
| 324 } |
| 325 |
| 326 // static |
| 315 Callable CodeFactory::FastCloneShallowArray( | 327 Callable CodeFactory::FastCloneShallowArray( |
| 316 Isolate* isolate, AllocationSiteMode allocation_mode) { | 328 Isolate* isolate, AllocationSiteMode allocation_mode) { |
| 317 return Callable(isolate->builtins()->NewCloneShallowArray(allocation_mode), | 329 return Callable(isolate->builtins()->NewCloneShallowArray(allocation_mode), |
| 318 FastCloneShallowArrayDescriptor(isolate)); | 330 FastCloneShallowArrayDescriptor(isolate)); |
| 319 } | 331 } |
| 320 | 332 |
| 321 // static | 333 // static |
| 322 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { | 334 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { |
| 323 return Callable(isolate->builtins()->NewCloneShallowObject(length), | 335 return Callable(isolate->builtins()->NewCloneShallowObject(length), |
| 324 FastCloneShallowObjectDescriptor(isolate)); | 336 FastCloneShallowObjectDescriptor(isolate)); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 } | 475 } |
| 464 | 476 |
| 465 // static | 477 // static |
| 466 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 478 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
| 467 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 479 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
| 468 BuiltinDescriptor(isolate)); | 480 BuiltinDescriptor(isolate)); |
| 469 } | 481 } |
| 470 | 482 |
| 471 } // namespace internal | 483 } // namespace internal |
| 472 } // namespace v8 | 484 } // namespace v8 |
| OLD | NEW |