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()"); | |
65 Add(ExternalReference::mod_two_doubles_operation(isolate).address(), | 63 Add(ExternalReference::mod_two_doubles_operation(isolate).address(), |
66 "mod_two_doubles"); | 64 "mod_two_doubles"); |
67 // Keyed lookup cache. | 65 // Keyed lookup cache. |
68 Add(ExternalReference::keyed_lookup_cache_keys(isolate).address(), | 66 Add(ExternalReference::keyed_lookup_cache_keys(isolate).address(), |
69 "KeyedLookupCache::keys()"); | 67 "KeyedLookupCache::keys()"); |
70 Add(ExternalReference::keyed_lookup_cache_field_offsets(isolate).address(), | 68 Add(ExternalReference::keyed_lookup_cache_field_offsets(isolate).address(), |
71 "KeyedLookupCache::field_offsets()"); | 69 "KeyedLookupCache::field_offsets()"); |
72 Add(ExternalReference::handle_scope_next_address(isolate).address(), | 70 Add(ExternalReference::handle_scope_next_address(isolate).address(), |
73 "HandleScope::next"); | 71 "HandleScope::next"); |
74 Add(ExternalReference::handle_scope_limit_address(isolate).address(), | 72 Add(ExternalReference::handle_scope_limit_address(isolate).address(), |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 Add(ExternalReference::virtual_handler_register(isolate).address(), | 130 Add(ExternalReference::virtual_handler_register(isolate).address(), |
133 "Isolate::virtual_handler_register()"); | 131 "Isolate::virtual_handler_register()"); |
134 Add(ExternalReference::virtual_slot_register(isolate).address(), | 132 Add(ExternalReference::virtual_slot_register(isolate).address(), |
135 "Isolate::virtual_slot_register()"); | 133 "Isolate::virtual_slot_register()"); |
136 Add(ExternalReference::runtime_function_table_address(isolate).address(), | 134 Add(ExternalReference::runtime_function_table_address(isolate).address(), |
137 "Runtime::runtime_function_table_address()"); | 135 "Runtime::runtime_function_table_address()"); |
138 | 136 |
139 // Debug addresses | 137 // Debug addresses |
140 Add(ExternalReference::debug_after_break_target_address(isolate).address(), | 138 Add(ExternalReference::debug_after_break_target_address(isolate).address(), |
141 "Debug::after_break_target_address()"); | 139 "Debug::after_break_target_address()"); |
142 Add(ExternalReference::debug_restarter_frame_function_pointer_address(isolate) | |
143 .address(), | |
144 "Debug::restarter_frame_function_pointer_address()"); | |
145 Add(ExternalReference::debug_is_active_address(isolate).address(), | 140 Add(ExternalReference::debug_is_active_address(isolate).address(), |
146 "Debug::is_active_address()"); | 141 "Debug::is_active_address()"); |
| 142 Add(ExternalReference::debug_step_in_enabled_address(isolate).address(), |
| 143 "Debug::step_in_enabled_address()"); |
147 | 144 |
148 #ifndef V8_INTERPRETED_REGEXP | 145 #ifndef V8_INTERPRETED_REGEXP |
149 Add(ExternalReference::re_case_insensitive_compare_uc16(isolate).address(), | 146 Add(ExternalReference::re_case_insensitive_compare_uc16(isolate).address(), |
150 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); | 147 "NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()"); |
151 Add(ExternalReference::re_check_stack_guard_state(isolate).address(), | 148 Add(ExternalReference::re_check_stack_guard_state(isolate).address(), |
152 "RegExpMacroAssembler*::CheckStackGuardState()"); | 149 "RegExpMacroAssembler*::CheckStackGuardState()"); |
153 Add(ExternalReference::re_grow_stack(isolate).address(), | 150 Add(ExternalReference::re_grow_stack(isolate).address(), |
154 "NativeRegExpMacroAssembler::GrowStack()"); | 151 "NativeRegExpMacroAssembler::GrowStack()"); |
155 Add(ExternalReference::re_word_character_map().address(), | 152 Add(ExternalReference::re_word_character_map().address(), |
156 "NativeRegExpMacroAssembler::word_character_map"); | 153 "NativeRegExpMacroAssembler::word_character_map"); |
(...skipping 2641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2798 SerializedCodeData* scd = new SerializedCodeData(cached_data); | 2795 SerializedCodeData* scd = new SerializedCodeData(cached_data); |
2799 SanityCheckResult r = scd->SanityCheck(isolate, source); | 2796 SanityCheckResult r = scd->SanityCheck(isolate, source); |
2800 if (r == CHECK_SUCCESS) return scd; | 2797 if (r == CHECK_SUCCESS) return scd; |
2801 cached_data->Reject(); | 2798 cached_data->Reject(); |
2802 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); | 2799 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); |
2803 delete scd; | 2800 delete scd; |
2804 return NULL; | 2801 return NULL; |
2805 } | 2802 } |
2806 } // namespace internal | 2803 } // namespace internal |
2807 } // namespace v8 | 2804 } // namespace v8 |
OLD | NEW |