Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: src/log.cc

Issue 145773008: A64: Synchronize with r17104. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/log.h ('k') | src/mark-compact.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after
1603 1603
1604 1604
1605 void Logger::LogCodeObject(Object* object) { 1605 void Logger::LogCodeObject(Object* object) {
1606 Code* code_object = Code::cast(object); 1606 Code* code_object = Code::cast(object);
1607 LogEventsAndTags tag = Logger::STUB_TAG; 1607 LogEventsAndTags tag = Logger::STUB_TAG;
1608 const char* description = "Unknown code from the snapshot"; 1608 const char* description = "Unknown code from the snapshot";
1609 switch (code_object->kind()) { 1609 switch (code_object->kind()) {
1610 case Code::FUNCTION: 1610 case Code::FUNCTION:
1611 case Code::OPTIMIZED_FUNCTION: 1611 case Code::OPTIMIZED_FUNCTION:
1612 return; // We log this later using LogCompiledFunctions. 1612 return; // We log this later using LogCompiledFunctions.
1613 case Code::BINARY_OP_IC: // fall through 1613 case Code::BINARY_OP_IC: {
1614 BinaryOpStub stub(code_object->extended_extra_ic_state());
1615 description = stub.GetName().Detach();
1616 tag = Logger::STUB_TAG;
1617 break;
1618 }
1614 case Code::COMPARE_IC: // fall through 1619 case Code::COMPARE_IC: // fall through
1615 case Code::COMPARE_NIL_IC: // fall through 1620 case Code::COMPARE_NIL_IC: // fall through
1616 case Code::TO_BOOLEAN_IC: // fall through 1621 case Code::TO_BOOLEAN_IC: // fall through
1617 case Code::STUB: 1622 case Code::STUB:
1618 description = 1623 description =
1619 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); 1624 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true);
1620 if (description == NULL) 1625 if (description == NULL)
1621 description = "A stub from the snapshot"; 1626 description = "A stub from the snapshot";
1622 tag = Logger::STUB_TAG; 1627 tag = Logger::STUB_TAG;
1623 break; 1628 break;
1624 case Code::REGEXP: 1629 case Code::REGEXP:
1625 description = "Regular expression code"; 1630 description = "Regular expression code";
1626 tag = Logger::REG_EXP_TAG; 1631 tag = Logger::REG_EXP_TAG;
1627 break; 1632 break;
1628 case Code::BUILTIN: 1633 case Code::BUILTIN:
1629 description = "A builtin from the snapshot"; 1634 description = "A builtin from the snapshot";
1630 tag = Logger::BUILTIN_TAG; 1635 tag = Logger::BUILTIN_TAG;
1631 break; 1636 break;
1637 case Code::HANDLER:
1638 description = "An IC handler from the snapshot";
1639 tag = Logger::HANDLER_TAG;
1640 break;
1632 case Code::KEYED_LOAD_IC: 1641 case Code::KEYED_LOAD_IC:
1633 description = "A keyed load IC from the snapshot"; 1642 description = "A keyed load IC from the snapshot";
1634 tag = Logger::KEYED_LOAD_IC_TAG; 1643 tag = Logger::KEYED_LOAD_IC_TAG;
1635 break; 1644 break;
1636 case Code::LOAD_IC: 1645 case Code::LOAD_IC:
1637 description = "A load IC from the snapshot"; 1646 description = "A load IC from the snapshot";
1638 tag = Logger::LOAD_IC_TAG; 1647 tag = Logger::LOAD_IC_TAG;
1639 break; 1648 break;
1640 case Code::STORE_IC: 1649 case Code::STORE_IC:
1641 description = "A store IC from the snapshot"; 1650 description = "A store IC from the snapshot";
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 if (jit_logger_) { 1914 if (jit_logger_) {
1906 removeCodeEventListener(jit_logger_); 1915 removeCodeEventListener(jit_logger_);
1907 delete jit_logger_; 1916 delete jit_logger_;
1908 jit_logger_ = NULL; 1917 jit_logger_ = NULL;
1909 } 1918 }
1910 1919
1911 return log_->Close(); 1920 return log_->Close();
1912 } 1921 }
1913 1922
1914 } } // namespace v8::internal 1923 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.h ('k') | src/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698