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

Side by Side Diff: src/log.cc

Issue 22184004: Desugar bitwise negation into XOR and kill all UnaryOp stuff. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. Created 7 years, 4 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
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 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
1648 case Code::BINARY_OP_IC: // fall through 1647 case Code::BINARY_OP_IC: // fall through
1649 case Code::COMPARE_IC: // fall through 1648 case Code::COMPARE_IC: // fall through
1650 case Code::COMPARE_NIL_IC: // fall through 1649 case Code::COMPARE_NIL_IC: // fall through
1651 case Code::TO_BOOLEAN_IC: // fall through 1650 case Code::TO_BOOLEAN_IC: // fall through
1652 case Code::STUB: 1651 case Code::STUB:
1653 description = 1652 description =
1654 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true); 1653 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true);
1655 if (description == NULL) 1654 if (description == NULL)
1656 description = "A stub from the snapshot"; 1655 description = "A stub from the snapshot";
1657 tag = Logger::STUB_TAG; 1656 tag = Logger::STUB_TAG;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 if (jit_logger_) { 1947 if (jit_logger_) {
1949 removeCodeEventListener(jit_logger_); 1948 removeCodeEventListener(jit_logger_);
1950 delete jit_logger_; 1949 delete jit_logger_;
1951 jit_logger_ = NULL; 1950 jit_logger_ = NULL;
1952 } 1951 }
1953 1952
1954 return log_->Close(); 1953 return log_->Close();
1955 } 1954 }
1956 1955
1957 } } // namespace v8::internal 1956 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/mips/assembler-mips.h » ('j') | src/x64/lithium-codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698