| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 } | 198 } |
| 199 #ifdef VERIFY_HEAP | 199 #ifdef VERIFY_HEAP |
| 200 // This disables verification of weak embedded objects after full GC. | 200 // This disables verification of weak embedded objects after full GC. |
| 201 // AddDependentCode can cause a GC, which would observe the state where | 201 // AddDependentCode can cause a GC, which would observe the state where |
| 202 // this code is not yet in the depended code lists of the embedded maps. | 202 // this code is not yet in the depended code lists of the embedded maps. |
| 203 NoWeakObjectVerificationScope disable_verification_of_embedded_objects; | 203 NoWeakObjectVerificationScope disable_verification_of_embedded_objects; |
| 204 #endif | 204 #endif |
| 205 for (int i = 0; i < maps.length(); i++) { | 205 for (int i = 0; i < maps.length(); i++) { |
| 206 maps.at(i)->AddDependentCode(DependentCode::kWeaklyEmbeddedGroup, code); | 206 maps.at(i)->AddDependentCode(DependentCode::kWeakCodeGroup, code); |
| 207 } | 207 } |
| 208 for (int i = 0; i < objects.length(); i++) { | 208 for (int i = 0; i < objects.length(); i++) { |
| 209 AddWeakObjectToCodeDependency(isolate()->heap(), objects.at(i), code); | 209 AddWeakObjectToCodeDependency(isolate()->heap(), objects.at(i), code); |
| 210 } | 210 } |
| 211 for (int i = 0; i < cells.length(); i++) { | 211 for (int i = 0; i < cells.length(); i++) { |
| 212 AddWeakObjectToCodeDependency(isolate()->heap(), cells.at(i), code); | 212 AddWeakObjectToCodeDependency(isolate()->heap(), cells.at(i), code); |
| 213 } | 213 } |
| 214 } | 214 } |
| 215 | 215 |
| 216 | 216 |
| 217 } } // namespace v8::internal | 217 } } // namespace v8::internal |
| OLD | NEW |