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

Side by Side Diff: src/log.cc

Issue 6894003: Better support for 'polymorphic' JS and external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: new strategy Created 9 years, 7 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
« src/ic.cc ('K') | « src/log.h ('k') | src/objects.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 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 tag = Logger::STUB_TAG; 1326 tag = Logger::STUB_TAG;
1327 break; 1327 break;
1328 case Code::BUILTIN: 1328 case Code::BUILTIN:
1329 description = "A builtin from the snapshot"; 1329 description = "A builtin from the snapshot";
1330 tag = Logger::BUILTIN_TAG; 1330 tag = Logger::BUILTIN_TAG;
1331 break; 1331 break;
1332 case Code::KEYED_LOAD_IC: 1332 case Code::KEYED_LOAD_IC:
1333 description = "A keyed load IC from the snapshot"; 1333 description = "A keyed load IC from the snapshot";
1334 tag = Logger::KEYED_LOAD_IC_TAG; 1334 tag = Logger::KEYED_LOAD_IC_TAG;
1335 break; 1335 break;
1336 case Code::KEYED_EXTERNAL_ARRAY_LOAD_IC:
1337 description = "A keyed external array load IC from the snapshot";
1338 tag = Logger::KEYED_EXTERNAL_ARRAY_LOAD_IC_TAG;
1339 break;
1340 case Code::LOAD_IC: 1336 case Code::LOAD_IC:
1341 description = "A load IC from the snapshot"; 1337 description = "A load IC from the snapshot";
1342 tag = Logger::LOAD_IC_TAG; 1338 tag = Logger::LOAD_IC_TAG;
1343 break; 1339 break;
1344 case Code::STORE_IC: 1340 case Code::STORE_IC:
1345 description = "A store IC from the snapshot"; 1341 description = "A store IC from the snapshot";
1346 tag = Logger::STORE_IC_TAG; 1342 tag = Logger::STORE_IC_TAG;
1347 break; 1343 break;
1348 case Code::KEYED_STORE_IC: 1344 case Code::KEYED_STORE_IC:
1349 description = "A keyed store IC from the snapshot"; 1345 description = "A keyed store IC from the snapshot";
1350 tag = Logger::KEYED_STORE_IC_TAG; 1346 tag = Logger::KEYED_STORE_IC_TAG;
1351 break; 1347 break;
1352 case Code::KEYED_EXTERNAL_ARRAY_STORE_IC:
1353 description = "A keyed external array store IC from the snapshot";
1354 tag = Logger::KEYED_EXTERNAL_ARRAY_STORE_IC_TAG;
1355 break;
1356 case Code::CALL_IC: 1348 case Code::CALL_IC:
1357 description = "A call IC from the snapshot"; 1349 description = "A call IC from the snapshot";
1358 tag = Logger::CALL_IC_TAG; 1350 tag = Logger::CALL_IC_TAG;
1359 break; 1351 break;
1360 case Code::KEYED_CALL_IC: 1352 case Code::KEYED_CALL_IC:
1361 description = "A keyed call IC from the snapshot"; 1353 description = "A keyed call IC from the snapshot";
1362 tag = Logger::KEYED_CALL_IC_TAG; 1354 tag = Logger::KEYED_CALL_IC_TAG;
1363 break; 1355 break;
1364 } 1356 }
1365 PROFILE(ISOLATE, CodeCreateEvent(tag, code_object, description)); 1357 PROFILE(ISOLATE, CodeCreateEvent(tag, code_object, description));
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { 1648 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) {
1657 ASSERT(sampler->IsActive()); 1649 ASSERT(sampler->IsActive());
1658 ScopedLock lock(mutex_); 1650 ScopedLock lock(mutex_);
1659 ASSERT(active_samplers_ != NULL); 1651 ASSERT(active_samplers_ != NULL);
1660 bool removed = active_samplers_->RemoveElement(sampler); 1652 bool removed = active_samplers_->RemoveElement(sampler);
1661 ASSERT(removed); 1653 ASSERT(removed);
1662 USE(removed); 1654 USE(removed);
1663 } 1655 }
1664 1656
1665 } } // namespace v8::internal 1657 } } // namespace v8::internal
OLDNEW
« src/ic.cc ('K') | « src/log.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698