OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 #else | 151 #else |
152 CpuFeatureScope(AssemblerBase* assembler, CpuFeature f) {} | 152 CpuFeatureScope(AssemblerBase* assembler, CpuFeature f) {} |
153 #endif | 153 #endif |
154 }; | 154 }; |
155 | 155 |
156 | 156 |
157 // Enable a unsupported feature within a scope for cross-compiling for a | 157 // Enable a unsupported feature within a scope for cross-compiling for a |
158 // different CPU. | 158 // different CPU. |
159 class PlatformFeatureScope BASE_EMBEDDED { | 159 class PlatformFeatureScope BASE_EMBEDDED { |
160 public: | 160 public: |
161 explicit PlatformFeatureScope(CpuFeature f); | 161 PlatformFeatureScope(Isolate* isolate, CpuFeature f); |
162 ~PlatformFeatureScope(); | 162 ~PlatformFeatureScope(); |
163 | 163 |
164 private: | 164 private: |
| 165 Isolate* isolate_; |
165 uint64_t old_cross_compile_; | 166 uint64_t old_cross_compile_; |
166 }; | 167 }; |
167 | 168 |
168 | 169 |
169 // ----------------------------------------------------------------------------- | 170 // ----------------------------------------------------------------------------- |
170 // Labels represent pc locations; they are typically jump or call targets. | 171 // Labels represent pc locations; they are typically jump or call targets. |
171 // After declaration, a label can be freely used to denote known or (yet) | 172 // After declaration, a label can be freely used to denote known or (yet) |
172 // unknown pc location. Assembler::bind() is used to bind a label to the | 173 // unknown pc location. Assembler::bind() is used to bind a label to the |
173 // current pc. A label can be bound only once. | 174 // current pc. A label can be bound only once. |
174 | 175 |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 | 1097 |
1097 private: | 1098 private: |
1098 int32_t multiplier_; | 1099 int32_t multiplier_; |
1099 int32_t shift_; | 1100 int32_t shift_; |
1100 }; | 1101 }; |
1101 | 1102 |
1102 | 1103 |
1103 } } // namespace v8::internal | 1104 } } // namespace v8::internal |
1104 | 1105 |
1105 #endif // V8_ASSEMBLER_H_ | 1106 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |