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

Side by Side Diff: src/serialize.cc

Issue 290093005: Introduce a separate event for CodeDisableOpt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: removed extra line Created 6 years, 7 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/objects.cc ('k') | test/cctest/test-cpu-profiler.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 "v8.h" 5 #include "v8.h"
6 6
7 #include "accessors.h" 7 #include "accessors.h"
8 #include "api.h" 8 #include "api.h"
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "deoptimizer.h" 10 #include "deoptimizer.h"
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 } 623 }
624 624
625 virtual ~CodeAddressMap() { 625 virtual ~CodeAddressMap() {
626 isolate_->logger()->removeCodeEventListener(this); 626 isolate_->logger()->removeCodeEventListener(this);
627 } 627 }
628 628
629 virtual void CodeMoveEvent(Address from, Address to) { 629 virtual void CodeMoveEvent(Address from, Address to) {
630 address_to_name_map_.Move(from, to); 630 address_to_name_map_.Move(from, to);
631 } 631 }
632 632
633 virtual void CodeDisableOptEvent(Code* code, SharedFunctionInfo* shared) {
634 }
635
633 virtual void CodeDeleteEvent(Address from) { 636 virtual void CodeDeleteEvent(Address from) {
634 address_to_name_map_.Remove(from); 637 address_to_name_map_.Remove(from);
635 } 638 }
636 639
637 const char* Lookup(Address address) { 640 const char* Lookup(Address address) {
638 return address_to_name_map_.Lookup(address); 641 return address_to_name_map_.Lookup(address);
639 } 642 }
640 643
641 private: 644 private:
642 class NameMap { 645 class NameMap {
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 1868
1866 bool SnapshotByteSource::AtEOF() { 1869 bool SnapshotByteSource::AtEOF() {
1867 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1870 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1868 for (int x = position_; x < length_; x++) { 1871 for (int x = position_; x < length_; x++) {
1869 if (data_[x] != SerializerDeserializer::nop()) return false; 1872 if (data_[x] != SerializerDeserializer::nop()) return false;
1870 } 1873 }
1871 return true; 1874 return true;
1872 } 1875 }
1873 1876
1874 } } // namespace v8::internal 1877 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-cpu-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698