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

Side by Side Diff: Source/core/xml/XPathStep.cpp

Issue 937653002: InlinedVisitor: Migrate xml to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/XPathStep.h ('k') | Source/core/xml/XPathValue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/xml/XPathStep.h ('k') | Source/core/xml/XPathValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698