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

Side by Side Diff: src/log.cc

Issue 1308393003: Add a PLACEHOLDER code kind. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | src/objects.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 // 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 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 tag = Logger::CALL_IC_TAG; 1636 tag = Logger::CALL_IC_TAG;
1637 break; 1637 break;
1638 case Code::STORE_IC: 1638 case Code::STORE_IC:
1639 description = "A store IC from the snapshot"; 1639 description = "A store IC from the snapshot";
1640 tag = Logger::STORE_IC_TAG; 1640 tag = Logger::STORE_IC_TAG;
1641 break; 1641 break;
1642 case Code::KEYED_STORE_IC: 1642 case Code::KEYED_STORE_IC:
1643 description = "A keyed store IC from the snapshot"; 1643 description = "A keyed store IC from the snapshot";
1644 tag = Logger::KEYED_STORE_IC_TAG; 1644 tag = Logger::KEYED_STORE_IC_TAG;
1645 break; 1645 break;
1646 case Code::PLACEHOLDER:
1647 description = "A placeholder for linking later code";
1648 tag = Logger::STUB_TAG;
1649 break;
1646 case Code::NUMBER_OF_KINDS: 1650 case Code::NUMBER_OF_KINDS:
1647 break; 1651 break;
1648 } 1652 }
1649 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description)); 1653 PROFILE(isolate_, CodeCreateEvent(tag, code_object, description));
1650 } 1654 }
1651 1655
1652 1656
1653 void Logger::LogCodeObjects() { 1657 void Logger::LogCodeObjects() {
1654 Heap* heap = isolate_->heap(); 1658 Heap* heap = isolate_->heap();
1655 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask, 1659 heap->CollectAllGarbage(Heap::kMakeHeapIterableMask,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 removeCodeEventListener(jit_logger_); 1905 removeCodeEventListener(jit_logger_);
1902 delete jit_logger_; 1906 delete jit_logger_;
1903 jit_logger_ = NULL; 1907 jit_logger_ = NULL;
1904 } 1908 }
1905 1909
1906 return log_->Close(); 1910 return log_->Close();
1907 } 1911 }
1908 1912
1909 } // namespace internal 1913 } // namespace internal
1910 } // namespace v8 1914 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698