| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> |
| 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 : m_axis(axis) | 49 : m_axis(axis) |
| 50 , m_nodeTest(adoptPtrWillBeNoop(new NodeTest(nodeTest))) | 50 , m_nodeTest(adoptPtrWillBeNoop(new NodeTest(nodeTest))) |
| 51 { | 51 { |
| 52 m_predicates.swap(predicates); | 52 m_predicates.swap(predicates); |
| 53 } | 53 } |
| 54 | 54 |
| 55 Step::~Step() | 55 Step::~Step() |
| 56 { | 56 { |
| 57 } | 57 } |
| 58 | 58 |
| 59 void Step::trace(Visitor* visitor) | 59 DEFINE_TRACE(Step) |
| 60 { | 60 { |
| 61 visitor->trace(m_nodeTest); | 61 visitor->trace(m_nodeTest); |
| 62 visitor->trace(m_predicates); | 62 visitor->trace(m_predicates); |
| 63 ParseNode::trace(visitor); | 63 ParseNode::trace(visitor); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void Step::optimize() | 66 void Step::optimize() |
| 67 { | 67 { |
| 68 // Evaluate predicates as part of node test if possible to avoid building | 68 // Evaluate predicates as part of node test if possible to avoid building |
| 69 // unnecessary NodeSets. | 69 // unnecessary NodeSets. |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 nodes.markSorted(false); | 430 nodes.markSorted(false); |
| 431 return; | 431 return; |
| 432 } | 432 } |
| 433 } | 433 } |
| 434 ASSERT_NOT_REACHED(); | 434 ASSERT_NOT_REACHED(); |
| 435 } | 435 } |
| 436 | 436 |
| 437 } | 437 } |
| 438 | 438 |
| 439 } | 439 } |
| OLD | NEW |