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/v8.h" | 10 #include "src/v8.h" |
(...skipping 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1603 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); | 1603 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); |
1604 if (description == NULL) | 1604 if (description == NULL) |
1605 description = "A stub from the snapshot"; | 1605 description = "A stub from the snapshot"; |
1606 tag = Logger::STUB_TAG; | 1606 tag = Logger::STUB_TAG; |
1607 break; | 1607 break; |
1608 case Code::REGEXP: | 1608 case Code::REGEXP: |
1609 description = "Regular expression code"; | 1609 description = "Regular expression code"; |
1610 tag = Logger::REG_EXP_TAG; | 1610 tag = Logger::REG_EXP_TAG; |
1611 break; | 1611 break; |
1612 case Code::BUILTIN: | 1612 case Code::BUILTIN: |
1613 description = "A builtin from the snapshot"; | 1613 description = isolate_->builtins()->name(code_object->builtin_index()); |
1614 tag = Logger::BUILTIN_TAG; | 1614 tag = Logger::BUILTIN_TAG; |
1615 break; | 1615 break; |
1616 case Code::HANDLER: | 1616 case Code::HANDLER: |
1617 description = "An IC handler from the snapshot"; | 1617 description = "An IC handler from the snapshot"; |
1618 tag = Logger::HANDLER_TAG; | 1618 tag = Logger::HANDLER_TAG; |
1619 break; | 1619 break; |
1620 case Code::KEYED_LOAD_IC: | 1620 case Code::KEYED_LOAD_IC: |
1621 description = "A keyed load IC from the snapshot"; | 1621 description = "A keyed load IC from the snapshot"; |
1622 tag = Logger::KEYED_LOAD_IC_TAG; | 1622 tag = Logger::KEYED_LOAD_IC_TAG; |
1623 break; | 1623 break; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1895 removeCodeEventListener(jit_logger_); | 1895 removeCodeEventListener(jit_logger_); |
1896 delete jit_logger_; | 1896 delete jit_logger_; |
1897 jit_logger_ = NULL; | 1897 jit_logger_ = NULL; |
1898 } | 1898 } |
1899 | 1899 |
1900 return log_->Close(); | 1900 return log_->Close(); |
1901 } | 1901 } |
1902 | 1902 |
1903 } // namespace internal | 1903 } // namespace internal |
1904 } // namespace v8 | 1904 } // namespace v8 |
OLD | NEW |