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

Side by Side Diff: src/log.cc

Issue 1297203002: Add CompileInfo::GetDebugName() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@interpreter_immed_bytecodes
Patch Set: Fix test crash Created 5 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
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/objects.cc » ('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 // 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 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 const char* description = "Unknown code from the snapshot"; 1599 const char* description = "Unknown code from the snapshot";
1600 switch (code_object->kind()) { 1600 switch (code_object->kind()) {
1601 case Code::FUNCTION: 1601 case Code::FUNCTION:
1602 case Code::OPTIMIZED_FUNCTION: 1602 case Code::OPTIMIZED_FUNCTION:
1603 return; // We log this later using LogCompiledFunctions. 1603 return; // We log this later using LogCompiledFunctions.
1604 case Code::BINARY_OP_IC: 1604 case Code::BINARY_OP_IC:
1605 case Code::COMPARE_IC: // fall through 1605 case Code::COMPARE_IC: // fall through
1606 case Code::COMPARE_NIL_IC: // fall through 1606 case Code::COMPARE_NIL_IC: // fall through
1607 case Code::TO_BOOLEAN_IC: // fall through 1607 case Code::TO_BOOLEAN_IC: // fall through
1608 case Code::STUB: 1608 case Code::STUB:
1609 description = 1609 description = CodeStub::MajorName(CodeStub::GetMajorKey(code_object));
1610 CodeStub::MajorName(CodeStub::GetMajorKey(code_object), true);
1611 if (description == NULL) 1610 if (description == NULL)
1612 description = "A stub from the snapshot"; 1611 description = "A stub from the snapshot";
1613 tag = Logger::STUB_TAG; 1612 tag = Logger::STUB_TAG;
1614 break; 1613 break;
1615 case Code::REGEXP: 1614 case Code::REGEXP:
1616 description = "Regular expression code"; 1615 description = "Regular expression code";
1617 tag = Logger::REG_EXP_TAG; 1616 tag = Logger::REG_EXP_TAG;
1618 break; 1617 break;
1619 case Code::BUILTIN: 1618 case Code::BUILTIN:
1620 description = isolate_->builtins()->name(code_object->builtin_index()); 1619 description = isolate_->builtins()->name(code_object->builtin_index());
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1902 removeCodeEventListener(jit_logger_); 1901 removeCodeEventListener(jit_logger_);
1903 delete jit_logger_; 1902 delete jit_logger_;
1904 jit_logger_ = NULL; 1903 jit_logger_ = NULL;
1905 } 1904 }
1906 1905
1907 return log_->Close(); 1906 return log_->Close();
1908 } 1907 }
1909 1908
1910 } // namespace internal 1909 } // namespace internal
1911 } // namespace v8 1910 } // namespace v8
OLDNEW
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698