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

Side by Side Diff: src/serialize.h

Issue 296043002: Remove special debug ExternalReferences. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/debug-mips.cc ('k') | src/serialize.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 #ifndef V8_SERIALIZE_H_ 5 #ifndef V8_SERIALIZE_H_
6 #define V8_SERIALIZE_H_ 6 #define V8_SERIALIZE_H_
7 7
8 #include "hashmap.h" 8 #include "hashmap.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 // A TypeCode is used to distinguish different kinds of external reference. 13 // A TypeCode is used to distinguish different kinds of external reference.
14 // It is a single bit to make testing for types easy. 14 // It is a single bit to make testing for types easy.
15 enum TypeCode { 15 enum TypeCode {
16 UNCLASSIFIED, // One-of-a-kind references. 16 UNCLASSIFIED, // One-of-a-kind references.
17 BUILTIN, 17 BUILTIN,
18 RUNTIME_FUNCTION, 18 RUNTIME_FUNCTION,
19 IC_UTILITY, 19 IC_UTILITY,
20 DEBUG_ADDRESS,
21 STATS_COUNTER, 20 STATS_COUNTER,
22 TOP_ADDRESS, 21 TOP_ADDRESS,
23 C_BUILTIN, 22 C_BUILTIN,
24 EXTENSION, 23 EXTENSION,
25 ACCESSOR, 24 ACCESSOR,
26 RUNTIME_ENTRY, 25 RUNTIME_ENTRY,
27 STUB_CACHE_TABLE, 26 STUB_CACHE_TABLE,
28 LAZY_DEOPTIMIZATION 27 LAZY_DEOPTIMIZATION
29 }; 28 };
30 29
31 const int kTypeCodeCount = LAZY_DEOPTIMIZATION + 1; 30 const int kTypeCodeCount = LAZY_DEOPTIMIZATION + 1;
32 const int kFirstTypeCode = UNCLASSIFIED; 31 const int kFirstTypeCode = UNCLASSIFIED;
33 32
34 const int kReferenceIdBits = 16; 33 const int kReferenceIdBits = 16;
35 const int kReferenceIdMask = (1 << kReferenceIdBits) - 1; 34 const int kReferenceIdMask = (1 << kReferenceIdBits) - 1;
36 const int kReferenceTypeShift = kReferenceIdBits; 35 const int kReferenceTypeShift = kReferenceIdBits;
37 const int kDebugRegisterBits = 4;
38 const int kDebugIdShift = kDebugRegisterBits;
39 36
40 const int kDeoptTableSerializeEntryCount = 12; 37 const int kDeoptTableSerializeEntryCount = 12;
41 38
42 // ExternalReferenceTable is a helper class that defines the relationship 39 // ExternalReferenceTable is a helper class that defines the relationship
43 // between external references and their encodings. It is used to build 40 // between external references and their encodings. It is used to build
44 // hashmaps in ExternalReferenceEncoder and ExternalReferenceDecoder. 41 // hashmaps in ExternalReferenceEncoder and ExternalReferenceDecoder.
45 class ExternalReferenceTable { 42 class ExternalReferenceTable {
46 public: 43 public:
47 static ExternalReferenceTable* instance(Isolate* isolate); 44 static ExternalReferenceTable* instance(Isolate* isolate);
48 45
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 private: 640 private:
644 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { 641 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) {
645 return false; 642 return false;
646 } 643 }
647 }; 644 };
648 645
649 646
650 } } // namespace v8::internal 647 } } // namespace v8::internal
651 648
652 #endif // V8_SERIALIZE_H_ 649 #endif // V8_SERIALIZE_H_
OLDNEW
« no previous file with comments | « src/mips/debug-mips.cc ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698