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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 } | 280 } |
281 | 281 |
282 // static | 282 // static |
283 Callable CodeFactory::Call(Isolate* isolate, ConvertReceiverMode mode, | 283 Callable CodeFactory::Call(Isolate* isolate, ConvertReceiverMode mode, |
284 TailCallMode tail_call_mode) { | 284 TailCallMode tail_call_mode) { |
285 return Callable(isolate->builtins()->Call(mode, tail_call_mode), | 285 return Callable(isolate->builtins()->Call(mode, tail_call_mode), |
286 CallTrampolineDescriptor(isolate)); | 286 CallTrampolineDescriptor(isolate)); |
287 } | 287 } |
288 | 288 |
289 // static | 289 // static |
| 290 Callable CodeFactory::CallWithArrayLike(Isolate* isolate) { |
| 291 return Callable(isolate->builtins()->CallWithArrayLike(), |
| 292 CallWithArrayLikeDescriptor(isolate)); |
| 293 } |
| 294 |
| 295 // static |
290 Callable CodeFactory::CallWithSpread(Isolate* isolate) { | 296 Callable CodeFactory::CallWithSpread(Isolate* isolate) { |
291 return Callable(isolate->builtins()->CallWithSpread(), | 297 return Callable(isolate->builtins()->CallWithSpread(), |
292 CallWithSpreadDescriptor(isolate)); | 298 CallWithSpreadDescriptor(isolate)); |
293 } | 299 } |
294 | 300 |
295 // static | 301 // static |
296 Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode, | 302 Callable CodeFactory::CallFunction(Isolate* isolate, ConvertReceiverMode mode, |
297 TailCallMode tail_call_mode) { | 303 TailCallMode tail_call_mode) { |
298 return Callable(isolate->builtins()->CallFunction(mode, tail_call_mode), | 304 return Callable(isolate->builtins()->CallFunction(mode, tail_call_mode), |
299 CallTrampolineDescriptor(isolate)); | 305 CallTrampolineDescriptor(isolate)); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 } | 418 } |
413 | 419 |
414 // static | 420 // static |
415 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 421 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
416 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 422 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
417 BuiltinDescriptor(isolate)); | 423 BuiltinDescriptor(isolate)); |
418 } | 424 } |
419 | 425 |
420 } // namespace internal | 426 } // namespace internal |
421 } // namespace v8 | 427 } // namespace v8 |
OLD | NEW |