Lines Matching full:stack
64 function SerializeArray(value, replacer, stack, indent, gap) {
65 if (!%PushIfAbsent(stack, value)) {
73 var strP = JSONSerialize($String(i), value, replacer, stack,
90 stack.pop();
94 function SerializeObject(value, replacer, stack, indent, gap) {
95 if (!%PushIfAbsent(stack, value)) {
106 var strP = JSONSerialize(p, value, replacer, stack, indent, gap);
118 var strP = JSONSerialize(p, value, replacer, stack, indent, gap);
138 stack.pop();
142 function JSONSerialize(key, holder, replacer, stack, indent, gap) {
164 return SerializeArray(value, replacer, stack, indent, gap);
173 return SerializeObject(value, replacer, stack, indent, gap);
181 function BasicSerializeArray(value, stack, builder) {
187 if (!%PushIfAbsent(stack, value)) {
198 stack.pop();
209 BasicJSONSerialize(i, val, stack, builder);
224 BasicJSONSerialize(i, val, stack, builder);
230 BasicJSONSerialize(0, val, stack, builder);
235 BasicJSONSerialize(i, value[i], stack, builder);
239 stack.pop();
244 function BasicSerializeObject(value, stack, builder) {
245 if (!%PushIfAbsent(stack, value)) {
259 BasicJSONSerialize(p, value[p], stack, builder);
268 stack.pop();
273 function BasicJSONSerialize(key, value, stack, builder) {
299 BasicSerializeArray(value, stack, builder);
301 BasicSerializeObject(value, stack, builder);