OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // unknown | 93 // unknown |
94 // | 94 // |
95 UNKNOWN_TYPE = 0x00, | 95 UNKNOWN_TYPE = 0x00, |
96 SMI_TYPE = 0x01, | 96 SMI_TYPE = 0x01, |
97 HEAP_OBJECT_TYPE = 0x02, | 97 HEAP_OBJECT_TYPE = 0x02, |
98 STRING_TYPE = 0x04 | HEAP_OBJECT_TYPE | 98 STRING_TYPE = 0x04 | HEAP_OBJECT_TYPE |
99 }; | 99 }; |
100 explicit StaticType(StaticTypeEnum static_type) : static_type_(static_type) {} | 100 explicit StaticType(StaticTypeEnum static_type) : static_type_(static_type) {} |
101 | 101 |
102 // StaticTypeEnum static_type_; | 102 // StaticTypeEnum static_type_; |
103 StaticTypeEnum static_type_; | 103 byte static_type_; |
104 | |
105 friend class FrameElement; | |
106 }; | 104 }; |
107 | 105 |
108 | 106 |
109 // ------------------------------------------------------------------------- | 107 // ------------------------------------------------------------------------- |
110 // Results | 108 // Results |
111 // | 109 // |
112 // Results encapsulate the compile-time values manipulated by the code | 110 // Results encapsulate the compile-time values manipulated by the code |
113 // generator. They can represent registers or constants. | 111 // generator. They can represent registers or constants. |
114 | 112 |
115 class Result BASE_EMBEDDED { | 113 class Result BASE_EMBEDDED { |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 } | 329 } |
332 | 330 |
333 private: | 331 private: |
334 CodeGenerator* cgen_; | 332 CodeGenerator* cgen_; |
335 RegisterFile registers_; | 333 RegisterFile registers_; |
336 }; | 334 }; |
337 | 335 |
338 } } // namespace v8::internal | 336 } } // namespace v8::internal |
339 | 337 |
340 #endif // V8_REGISTER_ALLOCATOR_H_ | 338 #endif // V8_REGISTER_ALLOCATOR_H_ |
OLD | NEW |