| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 tag = Logger::STUB_TAG; | 1317 tag = Logger::STUB_TAG; |
| 1318 break; | 1318 break; |
| 1319 case Code::BUILTIN: | 1319 case Code::BUILTIN: |
| 1320 description = "A builtin from the snapshot"; | 1320 description = "A builtin from the snapshot"; |
| 1321 tag = Logger::BUILTIN_TAG; | 1321 tag = Logger::BUILTIN_TAG; |
| 1322 break; | 1322 break; |
| 1323 case Code::KEYED_LOAD_IC: | 1323 case Code::KEYED_LOAD_IC: |
| 1324 description = "A keyed load IC from the snapshot"; | 1324 description = "A keyed load IC from the snapshot"; |
| 1325 tag = Logger::KEYED_LOAD_IC_TAG; | 1325 tag = Logger::KEYED_LOAD_IC_TAG; |
| 1326 break; | 1326 break; |
| 1327 case Code::KEYED_EXTERNAL_ARRAY_LOAD_IC: |
| 1328 description = "A keyed external array load IC from the snapshot"; |
| 1329 tag = Logger::KEYED_EXTERNAL_ARRAY_LOAD_IC_TAG; |
| 1330 break; |
| 1327 case Code::LOAD_IC: | 1331 case Code::LOAD_IC: |
| 1328 description = "A load IC from the snapshot"; | 1332 description = "A load IC from the snapshot"; |
| 1329 tag = Logger::LOAD_IC_TAG; | 1333 tag = Logger::LOAD_IC_TAG; |
| 1330 break; | 1334 break; |
| 1331 case Code::STORE_IC: | 1335 case Code::STORE_IC: |
| 1332 description = "A store IC from the snapshot"; | 1336 description = "A store IC from the snapshot"; |
| 1333 tag = Logger::STORE_IC_TAG; | 1337 tag = Logger::STORE_IC_TAG; |
| 1334 break; | 1338 break; |
| 1335 case Code::KEYED_STORE_IC: | 1339 case Code::KEYED_STORE_IC: |
| 1336 description = "A keyed store IC from the snapshot"; | 1340 description = "A keyed store IC from the snapshot"; |
| 1337 tag = Logger::KEYED_STORE_IC_TAG; | 1341 tag = Logger::KEYED_STORE_IC_TAG; |
| 1338 break; | 1342 break; |
| 1343 case Code::KEYED_EXTERNAL_ARRAY_STORE_IC: |
| 1344 description = "A keyed external array store IC from the snapshot"; |
| 1345 tag = Logger::KEYED_EXTERNAL_ARRAY_STORE_IC_TAG; |
| 1346 break; |
| 1339 case Code::CALL_IC: | 1347 case Code::CALL_IC: |
| 1340 description = "A call IC from the snapshot"; | 1348 description = "A call IC from the snapshot"; |
| 1341 tag = Logger::CALL_IC_TAG; | 1349 tag = Logger::CALL_IC_TAG; |
| 1342 break; | 1350 break; |
| 1343 case Code::KEYED_CALL_IC: | 1351 case Code::KEYED_CALL_IC: |
| 1344 description = "A keyed call IC from the snapshot"; | 1352 description = "A keyed call IC from the snapshot"; |
| 1345 tag = Logger::KEYED_CALL_IC_TAG; | 1353 tag = Logger::KEYED_CALL_IC_TAG; |
| 1346 break; | 1354 break; |
| 1347 } | 1355 } |
| 1348 PROFILE(CodeCreateEvent(tag, code_object, description)); | 1356 PROFILE(CodeCreateEvent(tag, code_object, description)); |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1640 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
| 1633 ASSERT(sampler->IsActive()); | 1641 ASSERT(sampler->IsActive()); |
| 1634 ScopedLock lock(mutex_); | 1642 ScopedLock lock(mutex_); |
| 1635 ASSERT(active_samplers_ != NULL); | 1643 ASSERT(active_samplers_ != NULL); |
| 1636 bool removed = active_samplers_->RemoveElement(sampler); | 1644 bool removed = active_samplers_->RemoveElement(sampler); |
| 1637 ASSERT(removed); | 1645 ASSERT(removed); |
| 1638 USE(removed); | 1646 USE(removed); |
| 1639 } | 1647 } |
| 1640 | 1648 |
| 1641 } } // namespace v8::internal | 1649 } } // namespace v8::internal |
| OLD | NEW |