OLD | NEW |
---|---|
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 20 matching lines...) Expand all Loading... | |
31 #include "hashmap.h" | 31 #include "hashmap.h" |
32 | 32 |
33 namespace v8 { | 33 namespace v8 { |
34 namespace internal { | 34 namespace internal { |
35 | 35 |
36 // A TypeCode is used to distinguish different kinds of external reference. | 36 // A TypeCode is used to distinguish different kinds of external reference. |
37 // It is a single bit to make testing for types easy. | 37 // It is a single bit to make testing for types easy. |
38 enum TypeCode { | 38 enum TypeCode { |
39 UNCLASSIFIED, // One-of-a-kind references. | 39 UNCLASSIFIED, // One-of-a-kind references. |
40 BUILTIN, | 40 BUILTIN, |
41 RUNTIME_FUNCTION, | 41 RUNTIME_FUNCTION_, |
Mads Ager (chromium)
2011/03/30 13:41:43
Argh.
Can we avoid this? RUNTIME_SIGNATURE(...) o
| |
42 IC_UTILITY, | 42 IC_UTILITY, |
43 DEBUG_ADDRESS, | 43 DEBUG_ADDRESS, |
44 STATS_COUNTER, | 44 STATS_COUNTER, |
45 TOP_ADDRESS, | 45 TOP_ADDRESS, |
46 C_BUILTIN, | 46 C_BUILTIN, |
47 EXTENSION, | 47 EXTENSION, |
48 ACCESSOR, | 48 ACCESSOR, |
49 RUNTIME_ENTRY, | 49 RUNTIME_ENTRY, |
50 STUB_CACHE_TABLE | 50 STUB_CACHE_TABLE |
51 }; | 51 }; |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
580 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; } | 580 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; } |
581 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 581 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
582 return false; | 582 return false; |
583 } | 583 } |
584 }; | 584 }; |
585 | 585 |
586 | 586 |
587 } } // namespace v8::internal | 587 } } // namespace v8::internal |
588 | 588 |
589 #endif // V8_SERIALIZE_H_ | 589 #endif // V8_SERIALIZE_H_ |
OLD | NEW |