Line data Source code
1 : // Copyright 2017 the V8 project authors. All rights reserved.
2 : // Use of this source code is governed by a BSD-style license that can be
3 : // found in the LICENSE file.
4 :
5 : #include "src/builtins/builtins.h"
6 : #include "src/globals.h"
7 : #include "src/macro-assembler.h"
8 :
9 : namespace v8 {
10 : namespace internal {
11 :
12 56 : void Builtins::Generate_InterpreterPushArgsThenCall(MacroAssembler* masm) {
13 : return Generate_InterpreterPushArgsThenCallImpl(
14 56 : masm, ConvertReceiverMode::kAny, InterpreterPushArgsMode::kOther);
15 : }
16 :
17 56 : void Builtins::Generate_InterpreterPushUndefinedAndArgsThenCall(
18 : MacroAssembler* masm) {
19 : return Generate_InterpreterPushArgsThenCallImpl(
20 : masm, ConvertReceiverMode::kNullOrUndefined,
21 56 : InterpreterPushArgsMode::kOther);
22 : }
23 :
24 56 : void Builtins::Generate_InterpreterPushArgsThenCallWithFinalSpread(
25 : MacroAssembler* masm) {
26 : return Generate_InterpreterPushArgsThenCallImpl(
27 : masm, ConvertReceiverMode::kAny,
28 56 : InterpreterPushArgsMode::kWithFinalSpread);
29 : }
30 :
31 56 : void Builtins::Generate_InterpreterPushArgsThenConstruct(MacroAssembler* masm) {
32 : return Generate_InterpreterPushArgsThenConstructImpl(
33 56 : masm, InterpreterPushArgsMode::kOther);
34 : }
35 :
36 56 : void Builtins::Generate_InterpreterPushArgsThenConstructWithFinalSpread(
37 : MacroAssembler* masm) {
38 : return Generate_InterpreterPushArgsThenConstructImpl(
39 56 : masm, InterpreterPushArgsMode::kWithFinalSpread);
40 : }
41 :
42 56 : void Builtins::Generate_InterpreterPushArgsThenConstructArrayFunction(
43 : MacroAssembler* masm) {
44 : return Generate_InterpreterPushArgsThenConstructImpl(
45 56 : masm, InterpreterPushArgsMode::kArrayFunction);
46 : }
47 :
48 : } // namespace internal
49 59480 : } // namespace v8
|