| 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 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1550 description = | 1550 description = |
| 1551 CodeStub::MajorName(CodeStub::GetMajorKey(code_object->GetCode())); | 1551 CodeStub::MajorName(CodeStub::GetMajorKey(code_object->GetCode())); |
| 1552 if (description == NULL) | 1552 if (description == NULL) |
| 1553 description = "A stub from the snapshot"; | 1553 description = "A stub from the snapshot"; |
| 1554 tag = Logger::STUB_TAG; | 1554 tag = Logger::STUB_TAG; |
| 1555 break; | 1555 break; |
| 1556 case AbstractCode::REGEXP: | 1556 case AbstractCode::REGEXP: |
| 1557 description = "Regular expression code"; | 1557 description = "Regular expression code"; |
| 1558 tag = Logger::REG_EXP_TAG; | 1558 tag = Logger::REG_EXP_TAG; |
| 1559 break; | 1559 break; |
| 1560 case AbstractCode::DEBUG_STUB: // fall through |
| 1560 case AbstractCode::BUILTIN: | 1561 case AbstractCode::BUILTIN: |
| 1561 description = | 1562 description = |
| 1562 isolate_->builtins()->name(code_object->GetCode()->builtin_index()); | 1563 isolate_->builtins()->name(code_object->GetCode()->builtin_index()); |
| 1563 tag = Logger::BUILTIN_TAG; | 1564 tag = Logger::BUILTIN_TAG; |
| 1564 break; | 1565 break; |
| 1565 case AbstractCode::HANDLER: | 1566 case AbstractCode::HANDLER: |
| 1566 description = "An IC handler from the snapshot"; | 1567 description = "An IC handler from the snapshot"; |
| 1567 tag = Logger::HANDLER_TAG; | 1568 tag = Logger::HANDLER_TAG; |
| 1568 break; | 1569 break; |
| 1569 case AbstractCode::KEYED_LOAD_IC: | 1570 case AbstractCode::KEYED_LOAD_IC: |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1893 removeCodeEventListener(jit_logger_); | 1894 removeCodeEventListener(jit_logger_); |
| 1894 delete jit_logger_; | 1895 delete jit_logger_; |
| 1895 jit_logger_ = NULL; | 1896 jit_logger_ = NULL; |
| 1896 } | 1897 } |
| 1897 | 1898 |
| 1898 return log_->Close(); | 1899 return log_->Close(); |
| 1899 } | 1900 } |
| 1900 | 1901 |
| 1901 } // namespace internal | 1902 } // namespace internal |
| 1902 } // namespace v8 | 1903 } // namespace v8 |
| OLD | NEW |