| OLD | NEW |
| 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 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1588 Code* code_object = Code::cast(object); | 1588 Code* code_object = Code::cast(object); |
| 1589 LogEventsAndTags tag = Logger::STUB_TAG; | 1589 LogEventsAndTags tag = Logger::STUB_TAG; |
| 1590 const char* description = "Unknown code from the snapshot"; | 1590 const char* description = "Unknown code from the snapshot"; |
| 1591 switch (code_object->kind()) { | 1591 switch (code_object->kind()) { |
| 1592 case Code::FUNCTION: | 1592 case Code::FUNCTION: |
| 1593 case Code::OPTIMIZED_FUNCTION: | 1593 case Code::OPTIMIZED_FUNCTION: |
| 1594 return; // We log this later using LogCompiledFunctions. | 1594 return; // We log this later using LogCompiledFunctions. |
| 1595 case Code::UNARY_OP_IC: // fall through | 1595 case Code::UNARY_OP_IC: // fall through |
| 1596 case Code::BINARY_OP_IC: // fall through | 1596 case Code::BINARY_OP_IC: // fall through |
| 1597 case Code::COMPARE_IC: // fall through | 1597 case Code::COMPARE_IC: // fall through |
| 1598 case Code::COMPARE_NIL_IC: // fall through |
| 1598 case Code::TO_BOOLEAN_IC: // fall through | 1599 case Code::TO_BOOLEAN_IC: // fall through |
| 1599 case Code::STUB: | 1600 case Code::STUB: |
| 1600 description = | 1601 description = |
| 1601 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); | 1602 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); |
| 1602 if (description == NULL) | 1603 if (description == NULL) |
| 1603 description = "A stub from the snapshot"; | 1604 description = "A stub from the snapshot"; |
| 1604 tag = Logger::STUB_TAG; | 1605 tag = Logger::STUB_TAG; |
| 1605 break; | 1606 break; |
| 1606 case Code::BUILTIN: | 1607 case Code::BUILTIN: |
| 1607 description = "A builtin from the snapshot"; | 1608 description = "A builtin from the snapshot"; |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1898 profiler_ = NULL; | 1899 profiler_ = NULL; |
| 1899 } | 1900 } |
| 1900 | 1901 |
| 1901 delete ticker_; | 1902 delete ticker_; |
| 1902 ticker_ = NULL; | 1903 ticker_ = NULL; |
| 1903 | 1904 |
| 1904 return log_->Close(); | 1905 return log_->Close(); |
| 1905 } | 1906 } |
| 1906 | 1907 |
| 1907 } } // namespace v8::internal | 1908 } } // namespace v8::internal |
| OLD | NEW |