OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/snapshot/serialize.h" | 5 #include "src/snapshot/serialize.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 Add(ExternalReference::address_of_real_stack_limit(isolate).address(), | 53 Add(ExternalReference::address_of_real_stack_limit(isolate).address(), |
54 "StackGuard::address_of_real_jslimit()"); | 54 "StackGuard::address_of_real_jslimit()"); |
55 Add(ExternalReference::new_space_start(isolate).address(), | 55 Add(ExternalReference::new_space_start(isolate).address(), |
56 "Heap::NewSpaceStart()"); | 56 "Heap::NewSpaceStart()"); |
57 Add(ExternalReference::new_space_mask(isolate).address(), | 57 Add(ExternalReference::new_space_mask(isolate).address(), |
58 "Heap::NewSpaceMask()"); | 58 "Heap::NewSpaceMask()"); |
59 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(), | 59 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(), |
60 "Heap::NewSpaceAllocationLimitAddress()"); | 60 "Heap::NewSpaceAllocationLimitAddress()"); |
61 Add(ExternalReference::new_space_allocation_top_address(isolate).address(), | 61 Add(ExternalReference::new_space_allocation_top_address(isolate).address(), |
62 "Heap::NewSpaceAllocationTopAddress()"); | 62 "Heap::NewSpaceAllocationTopAddress()"); |
| 63 Add(ExternalReference::debug_step_in_enabled_address(isolate).address(), |
| 64 "Debug::step_in_enabled_address()"); |
63 Add(ExternalReference::mod_two_doubles_operation(isolate).address(), | 65 Add(ExternalReference::mod_two_doubles_operation(isolate).address(), |
64 "mod_two_doubles"); | 66 "mod_two_doubles"); |
65 // Keyed lookup cache. | 67 // Keyed lookup cache. |
66 Add(ExternalReference::keyed_lookup_cache_keys(isolate).address(), | 68 Add(ExternalReference::keyed_lookup_cache_keys(isolate).address(), |
67 "KeyedLookupCache::keys()"); | 69 "KeyedLookupCache::keys()"); |
68 Add(ExternalReference::keyed_lookup_cache_field_offsets(isolate).address(), | 70 Add(ExternalReference::keyed_lookup_cache_field_offsets(isolate).address(), |
69 "KeyedLookupCache::field_offsets()"); | 71 "KeyedLookupCache::field_offsets()"); |
70 Add(ExternalReference::handle_scope_next_address(isolate).address(), | 72 Add(ExternalReference::handle_scope_next_address(isolate).address(), |
71 "HandleScope::next"); | 73 "HandleScope::next"); |
72 Add(ExternalReference::handle_scope_limit_address(isolate).address(), | 74 Add(ExternalReference::handle_scope_limit_address(isolate).address(), |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 Add(ExternalReference::virtual_handler_register(isolate).address(), | 132 Add(ExternalReference::virtual_handler_register(isolate).address(), |
131 "Isolate::virtual_handler_register()"); | 133 "Isolate::virtual_handler_register()"); |
132 Add(ExternalReference::virtual_slot_register(isolate).address(), | 134 Add(ExternalReference::virtual_slot_register(isolate).address(), |
133 "Isolate::virtual_slot_register()"); | 135 "Isolate::virtual_slot_register()"); |
134 Add(ExternalReference::runtime_function_table_address(isolate).address(), | 136 Add(ExternalReference::runtime_function_table_address(isolate).address(), |
135 "Runtime::runtime_function_table_address()"); | 137 "Runtime::runtime_function_table_address()"); |
136 | 138 |
137 // Debug addresses | 139 // Debug addresses |
138 Add(ExternalReference::debug_after_break_target_address(isolate).address(), | 140 Add(ExternalReference::debug_after_break_target_address(isolate).address(), |
139 "Debug::after_break_target_address()"); | 141 "Debug::after_break_target_address()"); |
| 142 Add(ExternalReference::debug_restarter_frame_function_pointer_address(isolate) |
| 143 .address(), |
| 144 "Debug::restarter_frame_function_pointer_address()"); |
140 Add(ExternalReference::debug_is_active_address(isolate).address(), | 145 Add(ExternalReference::debug_is_active_address(isolate).address(), |
141 "Debug::is_active_address()"); | 146 "Debug::is_active_address()"); |
142 Add(ExternalReference::debug_step_in_enabled_address(isolate).address(), | |
143 "Debug::step_in_enabled_address()"); | |
144 | 147 |
145 #ifndef V8_INTERPRETED_REGEXP | 148 #ifndef V8_INTERPRETED_REGEXP |
146 Add(ExternalReference::re_case_insensitive_compare_uc16(isolate).address(), | 149 Add(ExternalReference::re_case_insensitive_compare_uc16(isolate).address(), |
147 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); | 150 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); |
148 Add(ExternalReference::re_check_stack_guard_state(isolate).address(), | 151 Add(ExternalReference::re_check_stack_guard_state(isolate).address(), |
149 "RegExpMacroAssembler*::CheckStackGuardState()"); | 152 "RegExpMacroAssembler*::CheckStackGuardState()"); |
150 Add(ExternalReference::re_grow_stack(isolate).address(), | 153 Add(ExternalReference::re_grow_stack(isolate).address(), |
151 "NativeRegExpMacroAssembler::GrowStack()"); | 154 "NativeRegExpMacroAssembler::GrowStack()"); |
152 Add(ExternalReference::re_word_character_map().address(), | 155 Add(ExternalReference::re_word_character_map().address(), |
153 "NativeRegExpMacroAssembler::word_character_map"); | 156 "NativeRegExpMacroAssembler::word_character_map"); |
(...skipping 2641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2795 SerializedCodeData* scd = new SerializedCodeData(cached_data); | 2798 SerializedCodeData* scd = new SerializedCodeData(cached_data); |
2796 SanityCheckResult r = scd->SanityCheck(isolate, source); | 2799 SanityCheckResult r = scd->SanityCheck(isolate, source); |
2797 if (r == CHECK_SUCCESS) return scd; | 2800 if (r == CHECK_SUCCESS) return scd; |
2798 cached_data->Reject(); | 2801 cached_data->Reject(); |
2799 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); | 2802 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); |
2800 delete scd; | 2803 delete scd; |
2801 return NULL; | 2804 return NULL; |
2802 } | 2805 } |
2803 } // namespace internal | 2806 } // namespace internal |
2804 } // namespace v8 | 2807 } // namespace v8 |
OLD | NEW |