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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 #undef IC_ENTRY | 201 #undef IC_ENTRY |
202 }; // end of ref_table[]. | 202 }; // end of ref_table[]. |
203 | 203 |
204 for (size_t i = 0; i < ARRAY_SIZE(ref_table); ++i) { | 204 for (size_t i = 0; i < ARRAY_SIZE(ref_table); ++i) { |
205 AddFromId(ref_table[i].type, | 205 AddFromId(ref_table[i].type, |
206 ref_table[i].id, | 206 ref_table[i].id, |
207 ref_table[i].name, | 207 ref_table[i].name, |
208 isolate); | 208 isolate); |
209 } | 209 } |
210 | 210 |
211 #ifdef ENABLE_DEBUGGER_SUPPORT | |
212 // Debug addresses | 211 // Debug addresses |
213 Add(Debug_Address(Debug::k_after_break_target_address).address(isolate), | 212 Add(Debug_Address(Debug::k_after_break_target_address).address(isolate), |
214 DEBUG_ADDRESS, | 213 DEBUG_ADDRESS, |
215 Debug::k_after_break_target_address << kDebugIdShift, | 214 Debug::k_after_break_target_address << kDebugIdShift, |
216 "Debug::after_break_target_address()"); | 215 "Debug::after_break_target_address()"); |
217 Add(Debug_Address(Debug::k_debug_break_slot_address).address(isolate), | 216 Add(Debug_Address(Debug::k_debug_break_slot_address).address(isolate), |
218 DEBUG_ADDRESS, | 217 DEBUG_ADDRESS, |
219 Debug::k_debug_break_slot_address << kDebugIdShift, | 218 Debug::k_debug_break_slot_address << kDebugIdShift, |
220 "Debug::debug_break_slot_address()"); | 219 "Debug::debug_break_slot_address()"); |
221 Add(Debug_Address(Debug::k_debug_break_return_address).address(isolate), | 220 Add(Debug_Address(Debug::k_debug_break_return_address).address(isolate), |
222 DEBUG_ADDRESS, | 221 DEBUG_ADDRESS, |
223 Debug::k_debug_break_return_address << kDebugIdShift, | 222 Debug::k_debug_break_return_address << kDebugIdShift, |
224 "Debug::debug_break_return_address()"); | 223 "Debug::debug_break_return_address()"); |
225 Add(Debug_Address(Debug::k_restarter_frame_function_pointer).address(isolate), | 224 Add(Debug_Address(Debug::k_restarter_frame_function_pointer).address(isolate), |
226 DEBUG_ADDRESS, | 225 DEBUG_ADDRESS, |
227 Debug::k_restarter_frame_function_pointer << kDebugIdShift, | 226 Debug::k_restarter_frame_function_pointer << kDebugIdShift, |
228 "Debug::restarter_frame_function_pointer_address()"); | 227 "Debug::restarter_frame_function_pointer_address()"); |
229 #endif | |
230 | 228 |
231 // Stat counters | 229 // Stat counters |
232 struct StatsRefTableEntry { | 230 struct StatsRefTableEntry { |
233 StatsCounter* (Counters::*counter)(); | 231 StatsCounter* (Counters::*counter)(); |
234 uint16_t id; | 232 uint16_t id; |
235 const char* name; | 233 const char* name; |
236 }; | 234 }; |
237 | 235 |
238 const StatsRefTableEntry stats_ref_table[] = { | 236 const StatsRefTableEntry stats_ref_table[] = { |
239 #define COUNTER_ENTRY(name, caption) \ | 237 #define COUNTER_ENTRY(name, caption) \ |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 11, | 373 11, |
376 "Heap::NewSpaceMask()"); | 374 "Heap::NewSpaceMask()"); |
377 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(), | 375 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(), |
378 UNCLASSIFIED, | 376 UNCLASSIFIED, |
379 14, | 377 14, |
380 "Heap::NewSpaceAllocationLimitAddress()"); | 378 "Heap::NewSpaceAllocationLimitAddress()"); |
381 Add(ExternalReference::new_space_allocation_top_address(isolate).address(), | 379 Add(ExternalReference::new_space_allocation_top_address(isolate).address(), |
382 UNCLASSIFIED, | 380 UNCLASSIFIED, |
383 15, | 381 15, |
384 "Heap::NewSpaceAllocationTopAddress()"); | 382 "Heap::NewSpaceAllocationTopAddress()"); |
385 #ifdef ENABLE_DEBUGGER_SUPPORT | |
386 Add(ExternalReference::debug_break(isolate).address(), | 383 Add(ExternalReference::debug_break(isolate).address(), |
387 UNCLASSIFIED, | 384 UNCLASSIFIED, |
388 16, | 385 16, |
389 "Debug::Break()"); | 386 "Debug::Break()"); |
390 Add(ExternalReference::debug_step_in_fp_address(isolate).address(), | 387 Add(ExternalReference::debug_step_in_fp_address(isolate).address(), |
391 UNCLASSIFIED, | 388 UNCLASSIFIED, |
392 17, | 389 17, |
393 "Debug::step_in_fp_addr()"); | 390 "Debug::step_in_fp_addr()"); |
394 #endif | |
395 Add(ExternalReference::mod_two_doubles_operation(isolate).address(), | 391 Add(ExternalReference::mod_two_doubles_operation(isolate).address(), |
396 UNCLASSIFIED, | 392 UNCLASSIFIED, |
397 22, | 393 22, |
398 "mod_two_doubles"); | 394 "mod_two_doubles"); |
399 #ifndef V8_INTERPRETED_REGEXP | 395 #ifndef V8_INTERPRETED_REGEXP |
400 Add(ExternalReference::re_case_insensitive_compare_uc16(isolate).address(), | 396 Add(ExternalReference::re_case_insensitive_compare_uc16(isolate).address(), |
401 UNCLASSIFIED, | 397 UNCLASSIFIED, |
402 24, | 398 24, |
403 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); | 399 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); |
404 Add(ExternalReference::re_check_stack_guard_state(isolate).address(), | 400 Add(ExternalReference::re_check_stack_guard_state(isolate).address(), |
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 | 1884 |
1889 bool SnapshotByteSource::AtEOF() { | 1885 bool SnapshotByteSource::AtEOF() { |
1890 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1886 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
1891 for (int x = position_; x < length_; x++) { | 1887 for (int x = position_; x < length_; x++) { |
1892 if (data_[x] != SerializerDeserializer::nop()) return false; | 1888 if (data_[x] != SerializerDeserializer::nop()) return false; |
1893 } | 1889 } |
1894 return true; | 1890 return true; |
1895 } | 1891 } |
1896 | 1892 |
1897 } } // namespace v8::internal | 1893 } } // namespace v8::internal |
OLD | NEW |