| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/log.h" | 5 #include "src/log.h" |
| 6 | 6 |
| 7 #include <cstdarg> | 7 #include <cstdarg> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 AbstractCode* code_object = AbstractCode::cast(object); | 1527 AbstractCode* code_object = AbstractCode::cast(object); |
| 1528 LogEventsAndTags tag = Logger::STUB_TAG; | 1528 LogEventsAndTags tag = Logger::STUB_TAG; |
| 1529 const char* description = "Unknown code from the snapshot"; | 1529 const char* description = "Unknown code from the snapshot"; |
| 1530 switch (code_object->kind()) { | 1530 switch (code_object->kind()) { |
| 1531 case AbstractCode::FUNCTION: | 1531 case AbstractCode::FUNCTION: |
| 1532 case AbstractCode::INTERPRETED_FUNCTION: | 1532 case AbstractCode::INTERPRETED_FUNCTION: |
| 1533 case AbstractCode::OPTIMIZED_FUNCTION: | 1533 case AbstractCode::OPTIMIZED_FUNCTION: |
| 1534 return; // We log this later using LogCompiledFunctions. | 1534 return; // We log this later using LogCompiledFunctions. |
| 1535 case AbstractCode::BINARY_OP_IC: // fall through | 1535 case AbstractCode::BINARY_OP_IC: // fall through |
| 1536 case AbstractCode::COMPARE_IC: // fall through | 1536 case AbstractCode::COMPARE_IC: // fall through |
| 1537 case AbstractCode::COMPARE_NIL_IC: // fall through | |
| 1538 case AbstractCode::TO_BOOLEAN_IC: // fall through | 1537 case AbstractCode::TO_BOOLEAN_IC: // fall through |
| 1539 | 1538 |
| 1540 case AbstractCode::STUB: | 1539 case AbstractCode::STUB: |
| 1541 description = | 1540 description = |
| 1542 CodeStub::MajorName(CodeStub::GetMajorKey(code_object->GetCode())); | 1541 CodeStub::MajorName(CodeStub::GetMajorKey(code_object->GetCode())); |
| 1543 if (description == NULL) | 1542 if (description == NULL) |
| 1544 description = "A stub from the snapshot"; | 1543 description = "A stub from the snapshot"; |
| 1545 tag = Logger::STUB_TAG; | 1544 tag = Logger::STUB_TAG; |
| 1546 break; | 1545 break; |
| 1547 case AbstractCode::REGEXP: | 1546 case AbstractCode::REGEXP: |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1837 removeCodeEventListener(jit_logger_); | 1836 removeCodeEventListener(jit_logger_); |
| 1838 delete jit_logger_; | 1837 delete jit_logger_; |
| 1839 jit_logger_ = NULL; | 1838 jit_logger_ = NULL; |
| 1840 } | 1839 } |
| 1841 | 1840 |
| 1842 return log_->Close(); | 1841 return log_->Close(); |
| 1843 } | 1842 } |
| 1844 | 1843 |
| 1845 } // namespace internal | 1844 } // namespace internal |
| 1846 } // namespace v8 | 1845 } // namespace v8 |
| OLD | NEW |