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 byte static_type_; | 103 StaticTypeEnum static_type_; |
| 104 |
| 105 friend class FrameElement; |
104 }; | 106 }; |
105 | 107 |
106 | 108 |
107 // ------------------------------------------------------------------------- | 109 // ------------------------------------------------------------------------- |
108 // Results | 110 // Results |
109 // | 111 // |
110 // Results encapsulate the compile-time values manipulated by the code | 112 // Results encapsulate the compile-time values manipulated by the code |
111 // generator. They can represent registers or constants. | 113 // generator. They can represent registers or constants. |
112 | 114 |
113 class Result BASE_EMBEDDED { | 115 class Result BASE_EMBEDDED { |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 } | 331 } |
330 | 332 |
331 private: | 333 private: |
332 CodeGenerator* cgen_; | 334 CodeGenerator* cgen_; |
333 RegisterFile registers_; | 335 RegisterFile registers_; |
334 }; | 336 }; |
335 | 337 |
336 } } // namespace v8::internal | 338 } } // namespace v8::internal |
337 | 339 |
338 #endif // V8_REGISTER_ALLOCATOR_H_ | 340 #endif // V8_REGISTER_ALLOCATOR_H_ |
OLD | NEW |