| 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 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1637 | 1637 |
| 1638 | 1638 |
| 1639 void Logger::LogCodeObject(Object* object) { | 1639 void Logger::LogCodeObject(Object* object) { |
| 1640 Code* code_object = Code::cast(object); | 1640 Code* code_object = Code::cast(object); |
| 1641 LogEventsAndTags tag = Logger::STUB_TAG; | 1641 LogEventsAndTags tag = Logger::STUB_TAG; |
| 1642 const char* description = "Unknown code from the snapshot"; | 1642 const char* description = "Unknown code from the snapshot"; |
| 1643 switch (code_object->kind()) { | 1643 switch (code_object->kind()) { |
| 1644 case Code::FUNCTION: | 1644 case Code::FUNCTION: |
| 1645 case Code::OPTIMIZED_FUNCTION: | 1645 case Code::OPTIMIZED_FUNCTION: |
| 1646 return; // We log this later using LogCompiledFunctions. | 1646 return; // We log this later using LogCompiledFunctions. |
| 1647 case Code::UNARY_OP_IC: // fall through |
| 1647 case Code::BINARY_OP_IC: // fall through | 1648 case Code::BINARY_OP_IC: // fall through |
| 1648 case Code::COMPARE_IC: // fall through | 1649 case Code::COMPARE_IC: // fall through |
| 1649 case Code::COMPARE_NIL_IC: // fall through | 1650 case Code::COMPARE_NIL_IC: // fall through |
| 1650 case Code::TO_BOOLEAN_IC: // fall through | 1651 case Code::TO_BOOLEAN_IC: // fall through |
| 1651 case Code::STUB: | 1652 case Code::STUB: |
| 1652 description = | 1653 description = |
| 1653 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); | 1654 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); |
| 1654 if (description == NULL) | 1655 if (description == NULL) |
| 1655 description = "A stub from the snapshot"; | 1656 description = "A stub from the snapshot"; |
| 1656 tag = Logger::STUB_TAG; | 1657 tag = Logger::STUB_TAG; |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 if (jit_logger_) { | 1948 if (jit_logger_) { |
| 1948 removeCodeEventListener(jit_logger_); | 1949 removeCodeEventListener(jit_logger_); |
| 1949 delete jit_logger_; | 1950 delete jit_logger_; |
| 1950 jit_logger_ = NULL; | 1951 jit_logger_ = NULL; |
| 1951 } | 1952 } |
| 1952 | 1953 |
| 1953 return log_->Close(); | 1954 return log_->Close(); |
| 1954 } | 1955 } |
| 1955 | 1956 |
| 1956 } } // namespace v8::internal | 1957 } } // namespace v8::internal |
| OLD | NEW |