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

Side by Side Diff: src/log.cc

Issue 10701054: Enable stub generation using Hydrogen/Lithium (again) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 years 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
OLDNEW
1 // Copyright 2011 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
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 LogEventsAndTags tag = Logger::STUB_TAG; 1496 LogEventsAndTags tag = Logger::STUB_TAG;
1497 const char* description = "Unknown code from the snapshot"; 1497 const char* description = "Unknown code from the snapshot";
1498 switch (code_object->kind()) { 1498 switch (code_object->kind()) {
1499 case Code::FUNCTION: 1499 case Code::FUNCTION:
1500 case Code::OPTIMIZED_FUNCTION: 1500 case Code::OPTIMIZED_FUNCTION:
1501 return; // We log this later using LogCompiledFunctions. 1501 return; // We log this later using LogCompiledFunctions.
1502 case Code::UNARY_OP_IC: // fall through 1502 case Code::UNARY_OP_IC: // fall through
1503 case Code::BINARY_OP_IC: // fall through 1503 case Code::BINARY_OP_IC: // fall through
1504 case Code::COMPARE_IC: // fall through 1504 case Code::COMPARE_IC: // fall through
1505 case Code::TO_BOOLEAN_IC: // fall through 1505 case Code::TO_BOOLEAN_IC: // fall through
1506 case Code::COMPILED_STUB: // fall through
1506 case Code::STUB: 1507 case Code::STUB:
1507 description = 1508 description =
1508 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); 1509 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true);
1509 if (description == NULL) 1510 if (description == NULL)
1510 description = "A stub from the snapshot"; 1511 description = "A stub from the snapshot";
1511 tag = Logger::STUB_TAG; 1512 tag = Logger::STUB_TAG;
1512 break; 1513 break;
1513 case Code::BUILTIN: 1514 case Code::BUILTIN:
1514 description = "A builtin from the snapshot"; 1515 description = "A builtin from the snapshot";
1515 tag = Logger::BUILTIN_TAG; 1516 tag = Logger::BUILTIN_TAG;
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { 1898 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) {
1898 ASSERT(sampler->IsActive()); 1899 ASSERT(sampler->IsActive());
1899 ScopedLock lock(active_samplers_mutex); 1900 ScopedLock lock(active_samplers_mutex);
1900 ASSERT(active_samplers_ != NULL); 1901 ASSERT(active_samplers_ != NULL);
1901 bool removed = active_samplers_->RemoveElement(sampler); 1902 bool removed = active_samplers_->RemoveElement(sampler);
1902 ASSERT(removed); 1903 ASSERT(removed);
1903 USE(removed); 1904 USE(removed);
1904 } 1905 }
1905 1906
1906 } } // namespace v8::internal 1907 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698