OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 // Runtime functions | 169 // Runtime functions |
170 #define RUNTIME_ENTRY(name, nargs, ressize) \ | 170 #define RUNTIME_ENTRY(name, nargs, ressize) \ |
171 { RUNTIME_FUNCTION, \ | 171 { RUNTIME_FUNCTION, \ |
172 Runtime::k##name, \ | 172 Runtime::k##name, \ |
173 "Runtime::" #name }, | 173 "Runtime::" #name }, |
174 | 174 |
175 RUNTIME_FUNCTION_LIST(RUNTIME_ENTRY) | 175 RUNTIME_FUNCTION_LIST(RUNTIME_ENTRY) |
176 #undef RUNTIME_ENTRY | 176 #undef RUNTIME_ENTRY |
177 | 177 |
| 178 #define RUNTIME_HIDDEN_ENTRY(name, nargs, ressize) \ |
| 179 { RUNTIME_FUNCTION, \ |
| 180 Runtime::kHidden##name, \ |
| 181 "Runtime::Hidden" #name }, |
| 182 |
| 183 RUNTIME_HIDDEN_FUNCTION_LIST(RUNTIME_HIDDEN_ENTRY) |
| 184 #undef RUNTIME_HIDDEN_ENTRY |
| 185 |
| 186 #define INLINE_OPTIMIZED_ENTRY(name, nargs, ressize) \ |
| 187 { RUNTIME_FUNCTION, \ |
| 188 Runtime::kInlineOptimized##name, \ |
| 189 "Runtime::" #name }, |
| 190 |
| 191 INLINE_OPTIMIZED_FUNCTION_LIST(INLINE_OPTIMIZED_ENTRY) |
| 192 #undef INLINE_OPTIMIZED_ENTRY |
| 193 |
178 // IC utilities | 194 // IC utilities |
179 #define IC_ENTRY(name) \ | 195 #define IC_ENTRY(name) \ |
180 { IC_UTILITY, \ | 196 { IC_UTILITY, \ |
181 IC::k##name, \ | 197 IC::k##name, \ |
182 "IC::" #name }, | 198 "IC::" #name }, |
183 | 199 |
184 IC_UTIL_LIST(IC_ENTRY) | 200 IC_UTIL_LIST(IC_ENTRY) |
185 #undef IC_ENTRY | 201 #undef IC_ENTRY |
186 }; // end of ref_table[]. | 202 }; // end of ref_table[]. |
187 | 203 |
(...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1854 | 1870 |
1855 bool SnapshotByteSource::AtEOF() { | 1871 bool SnapshotByteSource::AtEOF() { |
1856 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1872 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
1857 for (int x = position_; x < length_; x++) { | 1873 for (int x = position_; x < length_; x++) { |
1858 if (data_[x] != SerializerDeserializer::nop()) return false; | 1874 if (data_[x] != SerializerDeserializer::nop()) return false; |
1859 } | 1875 } |
1860 return true; | 1876 return true; |
1861 } | 1877 } |
1862 | 1878 |
1863 } } // namespace v8::internal | 1879 } } // namespace v8::internal |
OLD | NEW |