Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: src/builtins/builtins-call-gen.cc

Issue 2803903002: Revert of [snapshot] Move builtins generation into mksnapshot (Closed)
Patch Set: rebased Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/builtins-call.cc ('k') | src/builtins/builtins-interpreter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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/isolate.h"
8 #include "src/macro-assembler.h"
9
10 namespace v8 {
11 namespace internal {
12
13 void Builtins::Generate_CallFunction_ReceiverIsNullOrUndefined(
14 MacroAssembler* masm) {
15 Generate_CallFunction(masm, ConvertReceiverMode::kNullOrUndefined,
16 TailCallMode::kDisallow);
17 }
18
19 void Builtins::Generate_CallFunction_ReceiverIsNotNullOrUndefined(
20 MacroAssembler* masm) {
21 Generate_CallFunction(masm, ConvertReceiverMode::kNotNullOrUndefined,
22 TailCallMode::kDisallow);
23 }
24
25 void Builtins::Generate_CallFunction_ReceiverIsAny(MacroAssembler* masm) {
26 Generate_CallFunction(masm, ConvertReceiverMode::kAny,
27 TailCallMode::kDisallow);
28 }
29
30 void Builtins::Generate_TailCallFunction_ReceiverIsNullOrUndefined(
31 MacroAssembler* masm) {
32 Generate_CallFunction(masm, ConvertReceiverMode::kNullOrUndefined,
33 TailCallMode::kAllow);
34 }
35
36 void Builtins::Generate_TailCallFunction_ReceiverIsNotNullOrUndefined(
37 MacroAssembler* masm) {
38 Generate_CallFunction(masm, ConvertReceiverMode::kNotNullOrUndefined,
39 TailCallMode::kAllow);
40 }
41
42 void Builtins::Generate_TailCallFunction_ReceiverIsAny(MacroAssembler* masm) {
43 Generate_CallFunction(masm, ConvertReceiverMode::kAny, TailCallMode::kAllow);
44 }
45
46 void Builtins::Generate_CallBoundFunction(MacroAssembler* masm) {
47 Generate_CallBoundFunctionImpl(masm, TailCallMode::kDisallow);
48 }
49
50 void Builtins::Generate_TailCallBoundFunction(MacroAssembler* masm) {
51 Generate_CallBoundFunctionImpl(masm, TailCallMode::kAllow);
52 }
53
54 void Builtins::Generate_Call_ReceiverIsNullOrUndefined(MacroAssembler* masm) {
55 Generate_Call(masm, ConvertReceiverMode::kNullOrUndefined,
56 TailCallMode::kDisallow);
57 }
58
59 void Builtins::Generate_Call_ReceiverIsNotNullOrUndefined(
60 MacroAssembler* masm) {
61 Generate_Call(masm, ConvertReceiverMode::kNotNullOrUndefined,
62 TailCallMode::kDisallow);
63 }
64
65 void Builtins::Generate_Call_ReceiverIsAny(MacroAssembler* masm) {
66 Generate_Call(masm, ConvertReceiverMode::kAny, TailCallMode::kDisallow);
67 }
68
69 void Builtins::Generate_TailCall_ReceiverIsNullOrUndefined(
70 MacroAssembler* masm) {
71 Generate_Call(masm, ConvertReceiverMode::kNullOrUndefined,
72 TailCallMode::kAllow);
73 }
74
75 void Builtins::Generate_TailCall_ReceiverIsNotNullOrUndefined(
76 MacroAssembler* masm) {
77 Generate_Call(masm, ConvertReceiverMode::kNotNullOrUndefined,
78 TailCallMode::kAllow);
79 }
80
81 void Builtins::Generate_TailCall_ReceiverIsAny(MacroAssembler* masm) {
82 Generate_Call(masm, ConvertReceiverMode::kAny, TailCallMode::kAllow);
83 }
84
85 void Builtins::Generate_CallForwardVarargs(MacroAssembler* masm) {
86 Generate_CallForwardVarargs(masm, masm->isolate()->builtins()->Call());
87 }
88
89 void Builtins::Generate_CallFunctionForwardVarargs(MacroAssembler* masm) {
90 Generate_CallForwardVarargs(masm,
91 masm->isolate()->builtins()->CallFunction());
92 }
93
94 } // namespace internal
95 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-call.cc ('k') | src/builtins/builtins-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698