OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 /** | 5 /** |
6 * Implementation for v8-experimental.h. | 6 * Implementation for v8-experimental.h. |
7 */ | 7 */ |
8 | 8 |
9 #include "src/api-experimental.h" | 9 #include "src/api-experimental.h" |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 int offset) { | 85 int offset) { |
86 return FromApi(this)->LoadValue(value_id, offset); | 86 return FromApi(this)->LoadValue(value_id, offset); |
87 } | 87 } |
88 | 88 |
89 | 89 |
90 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadObject(ValueId value_id, | 90 FastAccessorBuilder::ValueId FastAccessorBuilder::LoadObject(ValueId value_id, |
91 int offset) { | 91 int offset) { |
92 return FromApi(this)->LoadObject(value_id, offset); | 92 return FromApi(this)->LoadObject(value_id, offset); |
93 } | 93 } |
94 | 94 |
| 95 FastAccessorBuilder::ValueId FastAccessorBuilder::ToSmi(ValueId value_id) { |
| 96 return FromApi(this)->ToSmi(value_id); |
| 97 } |
95 | 98 |
96 void FastAccessorBuilder::ReturnValue(ValueId value) { | 99 void FastAccessorBuilder::ReturnValue(ValueId value) { |
97 FromApi(this)->ReturnValue(value); | 100 FromApi(this)->ReturnValue(value); |
98 } | 101 } |
99 | 102 |
100 | 103 |
101 void FastAccessorBuilder::CheckFlagSetOrReturnNull(ValueId value_id, int mask) { | 104 void FastAccessorBuilder::CheckFlagSetOrReturnNull(ValueId value_id, int mask) { |
102 FromApi(this)->CheckFlagSetOrReturnNull(value_id, mask); | 105 FromApi(this)->CheckFlagSetOrReturnNull(value_id, mask); |
103 } | 106 } |
104 | 107 |
105 | 108 |
106 void FastAccessorBuilder::CheckNotZeroOrReturnNull(ValueId value_id) { | 109 void FastAccessorBuilder::CheckNotZeroOrReturnNull(ValueId value_id) { |
107 FromApi(this)->CheckNotZeroOrReturnNull(value_id); | 110 FromApi(this)->CheckNotZeroOrReturnNull(value_id); |
108 } | 111 } |
109 | 112 |
110 | 113 |
111 FastAccessorBuilder::LabelId FastAccessorBuilder::MakeLabel() { | 114 FastAccessorBuilder::LabelId FastAccessorBuilder::MakeLabel() { |
112 return FromApi(this)->MakeLabel(); | 115 return FromApi(this)->MakeLabel(); |
113 } | 116 } |
114 | 117 |
115 | 118 |
116 void FastAccessorBuilder::SetLabel(LabelId label_id) { | 119 void FastAccessorBuilder::SetLabel(LabelId label_id) { |
117 FromApi(this)->SetLabel(label_id); | 120 FromApi(this)->SetLabel(label_id); |
118 } | 121 } |
119 | 122 |
| 123 void FastAccessorBuilder::Goto(LabelId label_id) { |
| 124 FromApi(this)->Goto(label_id); |
| 125 } |
120 | 126 |
121 void FastAccessorBuilder::CheckNotZeroOrJump(ValueId value_id, | 127 void FastAccessorBuilder::CheckNotZeroOrJump(ValueId value_id, |
122 LabelId label_id) { | 128 LabelId label_id) { |
123 FromApi(this)->CheckNotZeroOrJump(value_id, label_id); | 129 FromApi(this)->CheckNotZeroOrJump(value_id, label_id); |
124 } | 130 } |
125 | 131 |
126 FastAccessorBuilder::ValueId FastAccessorBuilder::Call( | 132 FastAccessorBuilder::ValueId FastAccessorBuilder::Call( |
127 v8::FunctionCallback callback, ValueId value_id) { | 133 v8::FunctionCallback callback, ValueId value_id) { |
128 return FromApi(this)->Call(callback, value_id); | 134 return FromApi(this)->Call(callback, value_id); |
129 } | 135 } |
130 | 136 |
131 } // namespace experimental | 137 } // namespace experimental |
132 } // namespace v8 | 138 } // namespace v8 |
OLD | NEW |