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/builtins/builtins-descriptors.h" | 8 #include "src/builtins/builtins-descriptors.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 } | 286 } |
287 | 287 |
288 // static | 288 // static |
289 Callable CodeFactory::Call(Isolate* isolate, ConvertReceiverMode mode, | 289 Callable CodeFactory::Call(Isolate* isolate, ConvertReceiverMode mode, |
290 TailCallMode tail_call_mode) { | 290 TailCallMode tail_call_mode) { |
291 return Callable(isolate->builtins()->Call(mode, tail_call_mode), | 291 return Callable(isolate->builtins()->Call(mode, tail_call_mode), |
292 CallTrampolineDescriptor(isolate)); | 292 CallTrampolineDescriptor(isolate)); |
293 } | 293 } |
294 | 294 |
295 // static | 295 // static |
| 296 Callable CodeFactory::CallWithArrayLike(Isolate* isolate) { |
| 297 return Callable(isolate->builtins()->CallWithArrayLike(), |
| 298 CallWithArrayLikeDescriptor(isolate)); |
| 299 } |
| 300 |
| 301 // static |
296 Callable CodeFactory::CallWithSpread(Isolate* isolate) { | 302 Callable CodeFactory::CallWithSpread(Isolate* isolate) { |
297 return Callable(isolate->builtins()->CallWithSpread(), | 303 return Callable(isolate->builtins()->CallWithSpread(), |
298 CallTrampolineDescriptor(isolate)); | 304 CallTrampolineDescriptor(isolate)); |
299 } | 305 } |
300 | 306 |
301 // static | 307 // static |
302 Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode, | 308 Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode, |
303 TailCallMode tail_call_mode) { | 309 TailCallMode tail_call_mode) { |
304 return Callable(isolate->builtins()->CallFunction(mode, tail_call_mode), | 310 return Callable(isolate->builtins()->CallFunction(mode, tail_call_mode), |
305 CallTrampolineDescriptor(isolate)); | 311 CallTrampolineDescriptor(isolate)); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 } | 424 } |
419 | 425 |
420 // static | 426 // static |
421 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 427 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
422 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 428 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
423 BuiltinDescriptor(isolate)); | 429 BuiltinDescriptor(isolate)); |
424 } | 430 } |
425 | 431 |
426 } // namespace internal | 432 } // namespace internal |
427 } // namespace v8 | 433 } // namespace v8 |
OLD | NEW |