Home | History | Annotate | Download | only in runtime

Lines Matching defs:rope

34 void JSString::Rope::destructNonRecursive()
36 Vector<Rope*, 32> workQueue;
37 Rope* rope = this;
40 unsigned length = rope->ropeLength();
42 Fiber& fiber = rope->fibers(i);
46 Rope* nextRope = fiber.rope();
53 if (rope != this)
54 fastFree(rope);
59 rope = workQueue.last();
64 JSString::Rope::~Rope()
69 // Overview: this methods converts a JSString from holding a string in rope form
72 // representing the rope is likely imbalanced with more nodes down the left side
78 // rope-of-ropes.)
100 // Start with the current Rope.
101 Vector<Rope::Fiber, 32> workQueue;
102 Rope::Fiber currentFiber;
108 Rope* rope = currentFiber.rope();
109 // Copy the contents of the current rope into the workQueue, with the last item in 'currentFiber'
110 // (we will be working backwards over the rope).
111 unsigned ropeLengthMinusOne = rope->ropeLength() - 1;
113 workQueue.append(rope->fibers(i));
114 currentFiber = rope->fibers(ropeLengthMinusOne);
123 // Create a string from the UChar buffer, clear the rope RefPtr.