Elliott Hughes | 2faa5f1 | 2012-01-30 14:42:07 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Shih-wei Liao | 63433ba | 2011-10-15 18:40:39 -0700 | [diff] [blame] | 16 | |
Nicolas Geoffray | e982f0b | 2014-08-13 02:11:24 +0100 | [diff] [blame] | 17 | #include "check_reference_map_visitor.h" |
Shih-wei Liao | 63433ba | 2011-10-15 18:40:39 -0700 | [diff] [blame] | 18 | #include "jni.h" |
| 19 | |
| 20 | namespace art { |
| 21 | |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 22 | #define CHECK_REGS_CONTAIN_REFS(dex_pc, abort_if_not_found, ...) do { \ |
Nicolas Geoffray | e982f0b | 2014-08-13 02:11:24 +0100 | [diff] [blame] | 23 | int t[] = {__VA_ARGS__}; \ |
| 24 | int t_size = sizeof(t) / sizeof(*t); \ |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 25 | uintptr_t native_quick_pc = m->ToNativeQuickPc(dex_pc, abort_if_not_found); \ |
| 26 | if (native_quick_pc != UINTPTR_MAX) { \ |
| 27 | CheckReferences(t, t_size, m->NativeQuickPcOffset(native_quick_pc)); \ |
| 28 | } \ |
Nicolas Geoffray | e982f0b | 2014-08-13 02:11:24 +0100 | [diff] [blame] | 29 | } while (false); |
Shih-wei Liao | 63433ba | 2011-10-15 18:40:39 -0700 | [diff] [blame] | 30 | |
Nicolas Geoffray | e982f0b | 2014-08-13 02:11:24 +0100 | [diff] [blame] | 31 | struct ReferenceMap2Visitor : public CheckReferenceMapVisitor { |
| 32 | explicit ReferenceMap2Visitor(Thread* thread) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) |
| 33 | : CheckReferenceMapVisitor(thread) {} |
Shih-wei Liao | 63433ba | 2011-10-15 18:40:39 -0700 | [diff] [blame] | 34 | |
Ian Rogers | b726dcb | 2012-09-05 08:57:23 -0700 | [diff] [blame] | 35 | bool VisitFrame() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { |
Nicolas Geoffray | e982f0b | 2014-08-13 02:11:24 +0100 | [diff] [blame] | 36 | if (CheckReferenceMapVisitor::VisitFrame()) { |
| 37 | return true; |
| 38 | } |
Mathieu Chartier | e401d14 | 2015-04-22 13:56:20 -0700 | [diff] [blame] | 39 | ArtMethod* m = GetMethod(); |
Mathieu Chartier | bfd9a43 | 2014-05-21 17:43:44 -0700 | [diff] [blame] | 40 | std::string m_name(m->GetName()); |
Shih-wei Liao | 63433ba | 2011-10-15 18:40:39 -0700 | [diff] [blame] | 41 | |
| 42 | // Given the method name and the number of times the method has been called, |
| 43 | // we know the Dex registers with live reference values. Assert that what we |
| 44 | // find is what is expected. |
| 45 | if (m_name.compare("f") == 0) { |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 46 | CHECK_REGS_CONTAIN_REFS(0x03U, true, 8); // v8: this |
| 47 | CHECK_REGS_CONTAIN_REFS(0x06U, true, 8, 1); // v8: this, v1: x |
| 48 | CHECK_REGS_CONTAIN_REFS(0x08U, true, 8, 3, 1); // v8: this, v3: y, v1: x |
| 49 | CHECK_REGS_CONTAIN_REFS(0x0cU, true, 8, 3, 1); // v8: this, v3: y, v1: x |
| 50 | CHECK_REGS_CONTAIN_REFS(0x0eU, true, 8, 3, 1); // v8: this, v3: y, v1: x |
| 51 | CHECK_REGS_CONTAIN_REFS(0x10U, true, 8, 3, 1); // v8: this, v3: y, v1: x |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 52 | // v2 is added because of the instruction at DexPC 0024. Object merges with 0 is Object. See: |
| 53 | // 0024: move-object v3, v2 |
| 54 | // 0025: goto 0013 |
Vladimir Marko | 8b858e1 | 2014-11-27 14:52:37 +0000 | [diff] [blame] | 55 | // Detailed dex instructions for ReferenceMap.java are at the end of this function. |
Brian Carlstrom | 0f055d1 | 2013-07-26 12:46:02 -0700 | [diff] [blame] | 56 | // CHECK_REGS_CONTAIN_REFS(8, 3, 2, 1); // v8: this, v3: y, v2: y, v1: x |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 57 | // We eliminate the non-live registers at a return, so only v3 is live. |
| 58 | // Note that it is OK for a compiler to not have a dex map at this dex PC because |
Vladimir Marko | 8b858e1 | 2014-11-27 14:52:37 +0000 | [diff] [blame] | 59 | // a return is not necessarily a safepoint. |
Vladimir Marko | 767c752 | 2015-03-20 12:47:30 +0000 | [diff] [blame] | 60 | CHECK_REGS_CONTAIN_REFS(0x13U, false, 3); // v3: y |
| 61 | // Note that v0: ex can be eliminated because it's a dead merge of two different exceptions. |
| 62 | CHECK_REGS_CONTAIN_REFS(0x18U, true, 8, 2, 1); // v8: this, v2: y, v1: x (dead v0: ex) |
| 63 | CHECK_REGS_CONTAIN_REFS(0x1aU, true, 8, 5, 2, 1); // v8: this, v5: x[1], v2: y, v1: x (dead v0: ex) |
| 64 | CHECK_REGS_CONTAIN_REFS(0x1dU, true, 8, 5, 2, 1); // v8: this, v5: x[1], v2: y, v1: x (dead v0: ex) |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 65 | // v5 is removed from the root set because there is a "merge" operation. |
| 66 | // See 0015: if-nez v2, 001f. |
Vladimir Marko | 767c752 | 2015-03-20 12:47:30 +0000 | [diff] [blame] | 67 | CHECK_REGS_CONTAIN_REFS(0x1fU, true, 8, 2, 1); // v8: this, v2: y, v1: x (dead v0: ex) |
| 68 | CHECK_REGS_CONTAIN_REFS(0x21U, true, 8, 2, 1); // v8: this, v2: y, v1: x (dead v0: ex) |
Nicolas Geoffray | de58ab2 | 2014-11-05 12:46:03 +0000 | [diff] [blame] | 69 | CHECK_REGS_CONTAIN_REFS(0x27U, true, 8, 4, 2, 1); // v8: this, v4: ex, v2: y, v1: x |
| 70 | CHECK_REGS_CONTAIN_REFS(0x29U, true, 8, 4, 2, 1); // v8: this, v4: ex, v2: y, v1: x |
| 71 | CHECK_REGS_CONTAIN_REFS(0x2cU, true, 8, 4, 2, 1); // v8: this, v4: ex, v2: y, v1: x |
Vladimir Marko | 8b858e1 | 2014-11-27 14:52:37 +0000 | [diff] [blame] | 72 | // Note that it is OK for a compiler to not have a dex map at these two dex PCs because |
| 73 | // a goto is not necessarily a safepoint. |
| 74 | CHECK_REGS_CONTAIN_REFS(0x2fU, false, 8, 4, 3, 2, 1); // v8: this, v4: ex, v3: y, v2: y, v1: x |
| 75 | CHECK_REGS_CONTAIN_REFS(0x32U, false, 8, 3, 2, 1, 0); // v8: this, v3: y, v2: y, v1: x, v0: ex |
Shih-wei Liao | 63433ba | 2011-10-15 18:40:39 -0700 | [diff] [blame] | 76 | } |
Elliott Hughes | 530fa00 | 2012-03-12 11:44:49 -0700 | [diff] [blame] | 77 | |
| 78 | return true; |
Shih-wei Liao | 63433ba | 2011-10-15 18:40:39 -0700 | [diff] [blame] | 79 | } |
| 80 | }; |
| 81 | |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 82 | // Dex instructions for the function 'f' in ReferenceMap.java |
| 83 | // Virtual methods - |
| 84 | // #0 : (in LReferenceMap;) |
| 85 | // name : 'f' |
| 86 | // type : '()Ljava/lang/Object;' |
| 87 | // access : 0x0000 () |
| 88 | // code - |
| 89 | // registers : 9 |
| 90 | // ins : 1 |
| 91 | // outs : 2 |
| 92 | // insns size : 51 16-bit code units |
| 93 | // |[0001e8] ReferenceMap.f:()Ljava/lang/Object; |
| 94 | // |0000: const/4 v4, #int 2 // #2 |
| 95 | // |0001: const/4 v7, #int 0 // #0 |
| 96 | // |0002: const/4 v6, #int 1 // #1 |
| 97 | // |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 98 | // 0:[Unknown],1:[Unknown],2:[Unknown],3:[Unknown],4:[32-bit Constant: 2],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
| 99 | // |0003: new-array v1, v4, [Ljava/lang/Object; // type@0007 |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 100 | // |0005: const/4 v2, #int 0 // #0 |
| 101 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 102 | // 0:[Unknown],1:[Reference: java.lang.Object[]],2:[Zero],3:[Unknown],4:[32-bit Constant: 2],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
| 103 | // |0006: new-instance v3, Ljava/lang/Object; // type@0003 |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 104 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 105 | // [Unknown],1:[Reference: java.lang.Object[]],2:[Zero],3:[Uninitialized Reference: java.lang.Object],4:[32-bit Constant: 2],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 106 | // |0008: +invoke-object-init/range {}, Ljava/lang/Object;.<init>:()V // method@0005 |
| 107 | // |000b: const/4 v4, #int 2 // #2 |
| 108 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 109 | // 0:[Unknown],1:[Reference: java.lang.Object[]],2:[Zero],3:[Reference: java.lang.Object],4:[32-bit Constant: 2],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 110 | // |000c: aput-object v3, v1, v4 |
| 111 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 112 | // 0:[Unknown],1:[Reference: java.lang.Object[]],2:[Zero],3:[Reference: java.lang.Object],4:[32-bit Constant: 2],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 113 | // |000e: aput-object v3, v1, v6 |
| 114 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 115 | // 0:[Unknown],1:[Reference: java.lang.Object[]],2:[Zero],3:[Reference: java.lang.Object],4:[32-bit Constant: 2],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 116 | // |0010: +invoke-virtual-quick {v8, v7}, [000c] // vtable #000c |
| 117 | |
Brian Carlstrom | 0f055d1 | 2013-07-26 12:46:02 -0700 | [diff] [blame] | 118 | // 0:[Conflict],1:[Conflict],2:[Conflict],3:[Reference: java.lang.Object],4:[Conflict],5:[Conflict],6:[Conflict],7:[Conflict],8:[Conflict], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 119 | // |0013: return-object v3 |
| 120 | // |0014: move-exception v0 |
| 121 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 122 | // 0:[Reference: java.lang.Exception],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Conflict],4:[32-bit Constant: 2],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 123 | // |0015: if-nez v2, 001f // +000a |
| 124 | // |0017: const/4 v4, #int 1 // #1 |
| 125 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 126 | // 0:[Reference: java.lang.Exception],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Conflict],4:[32-bit Constant: 1],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
| 127 | // |0018: new-instance v5, Ljava/lang/Object; // type@0003 |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 128 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 129 | // 0:[Reference: java.lang.Exception],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Conflict],4:[32-bit Constant: 1],5:[Uninitialized Reference: java.lang.Object],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 130 | // |001a: +invoke-object-init/range {}, Ljava/lang/Object;.<init>:()V // method@0005 |
| 131 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 132 | // 0:[Reference: java.lang.Exception],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Conflict],4:[32-bit Constant: 1],5:[Reference: java.lang.Object],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 133 | // |001d: aput-object v5, v1, v4 |
| 134 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 135 | // 0:[Reference: java.lang.Exception],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Conflict],4:[32-bit Constant: 2],5:[Conflict],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 136 | // |001f: aput-object v2, v1, v6 |
| 137 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 138 | // 0:[Reference: java.lang.Exception],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Conflict],4:[32-bit Constant: 2],5:[Conflict],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 139 | // |0021: +invoke-virtual-quick {v8, v7}, [000c] // vtable #000c |
| 140 | // |0024: move-object v3, v2 |
| 141 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 142 | // 0:[Reference: java.lang.Exception],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Reference: java.lang.Object],4:[32-bit Constant: 2],5:[Conflict],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 143 | // |0025: goto 0013 // -0012 |
| 144 | // |0026: move-exception v4 |
| 145 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 146 | // 0:[Conflict],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Conflict],4:[Reference: java.lang.Throwable],5:[Conflict],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 147 | // |0027: aput-object v2, v1, v6 |
| 148 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 149 | // 0:[Conflict],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Conflict],4:[Reference: java.lang.Throwable],5:[Conflict],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 150 | // |0029: +invoke-virtual-quick {v8, v7}, [000c] // vtable #000c |
| 151 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 152 | // 0:[Conflict],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Conflict],4:[Reference: java.lang.Throwable],5:[Conflict],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 153 | // |002c: throw v4 |
| 154 | // |002d: move-exception v4 |
| 155 | // |002e: move-object v2, v3 |
| 156 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 157 | // 0:[Unknown],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Reference: java.lang.Object],4:[Reference: java.lang.Throwable],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 158 | // |002f: goto 0027 // -0008 |
| 159 | // |0030: move-exception v0 |
| 160 | // |0031: move-object v2, v3 |
| 161 | |
Brian Carlstrom | 7934ac2 | 2013-07-26 10:54:15 -0700 | [diff] [blame] | 162 | // 0:[Reference: java.lang.Exception],1:[Reference: java.lang.Object[]],2:[Reference: java.lang.Object],3:[Reference: java.lang.Object],4:[32-bit Constant: 2],5:[Unknown],6:[32-bit Constant: 1],7:[Zero],8:[Reference: ReferenceMap], |
Shih-wei Liao | 371814f | 2011-10-27 16:52:10 -0700 | [diff] [blame] | 163 | // |0032: goto 0015 // -001d |
| 164 | // catches : 3 |
| 165 | // 0x0006 - 0x000b |
| 166 | // Ljava/lang/Exception; -> 0x0014 |
| 167 | // <any> -> 0x0026 |
| 168 | // 0x000c - 0x000e |
| 169 | // Ljava/lang/Exception; -> 0x0030 |
| 170 | // <any> -> 0x002d |
| 171 | // 0x0018 - 0x001f |
| 172 | // <any> -> 0x0026 |
| 173 | // positions : |
| 174 | // 0x0003 line=8 |
| 175 | // 0x0005 line=9 |
| 176 | // 0x0006 line=11 |
| 177 | // 0x000b line=12 |
| 178 | // 0x000e line=18 |
| 179 | // 0x0010 line=19 |
| 180 | // 0x0013 line=21 |
| 181 | // 0x0014 line=13 |
| 182 | // 0x0015 line=14 |
| 183 | // 0x0017 line=15 |
| 184 | // 0x001f line=18 |
| 185 | // 0x0021 line=19 |
| 186 | // 0x0025 line=20 |
| 187 | // 0x0026 line=18 |
| 188 | // 0x0029 line=19 |
| 189 | // 0x002d line=18 |
| 190 | // 0x0030 line=13 |
| 191 | // locals : |
| 192 | // 0x0006 - 0x000b reg=2 y Ljava/lang/Object; |
| 193 | // 0x000b - 0x0013 reg=3 y Ljava/lang/Object; |
| 194 | // 0x0014 - 0x0015 reg=2 y Ljava/lang/Object; |
| 195 | // 0x0015 - 0x0026 reg=0 ex Ljava/lang/Exception; |
| 196 | // 0x002d - 0x0032 reg=3 y Ljava/lang/Object; |
| 197 | // 0x0005 - 0x0033 reg=1 x [Ljava/lang/Object; |
| 198 | // 0x0032 - 0x0033 reg=2 y Ljava/lang/Object; |
| 199 | // 0x0000 - 0x0033 reg=8 this LReferenceMap; |
| 200 | |
Andreas Gampe | 1c83cbc | 2014-07-22 18:52:29 -0700 | [diff] [blame] | 201 | extern "C" JNIEXPORT jint JNICALL Java_Main_refmap(JNIEnv*, jobject, jint count) { |
Shih-wei Liao | 63433ba | 2011-10-15 18:40:39 -0700 | [diff] [blame] | 202 | // Visitor |
Ian Rogers | 7a22fa6 | 2013-01-23 12:16:16 -0800 | [diff] [blame] | 203 | ScopedObjectAccess soa(Thread::Current()); |
| 204 | ReferenceMap2Visitor mapper(soa.Self()); |
Ian Rogers | 0399dde | 2012-06-06 17:09:28 -0700 | [diff] [blame] | 205 | mapper.WalkStack(); |
Shih-wei Liao | 63433ba | 2011-10-15 18:40:39 -0700 | [diff] [blame] | 206 | |
| 207 | return count + 1; |
| 208 | } |
| 209 | |
Brian Carlstrom | 0cd7ec2 | 2013-07-17 23:40:20 -0700 | [diff] [blame] | 210 | } // namespace art |