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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), | 112 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), |
113 "Code::MarkCodeAsExecuted"); | 113 "Code::MarkCodeAsExecuted"); |
114 Add(ExternalReference::is_profiling_address(isolate).address(), | 114 Add(ExternalReference::is_profiling_address(isolate).address(), |
115 "CpuProfiler::is_profiling"); | 115 "CpuProfiler::is_profiling"); |
116 Add(ExternalReference::scheduled_exception_address(isolate).address(), | 116 Add(ExternalReference::scheduled_exception_address(isolate).address(), |
117 "Isolate::scheduled_exception"); | 117 "Isolate::scheduled_exception"); |
118 Add(ExternalReference::invoke_function_callback(isolate).address(), | 118 Add(ExternalReference::invoke_function_callback(isolate).address(), |
119 "InvokeFunctionCallback"); | 119 "InvokeFunctionCallback"); |
120 Add(ExternalReference::invoke_accessor_getter_callback(isolate).address(), | 120 Add(ExternalReference::invoke_accessor_getter_callback(isolate).address(), |
121 "InvokeAccessorGetterCallback"); | 121 "InvokeAccessorGetterCallback"); |
122 Add(ExternalReference::trunc64_wrapper_function(isolate).address(), | 122 Add(ExternalReference::f32_trunc_wrapper_function(isolate).address(), |
123 "trunc64_wrapper"); | 123 "f32_trunc_wrapper"); |
| 124 Add(ExternalReference::f32_floor_wrapper_function(isolate).address(), |
| 125 "f32_floor_wrapper"); |
| 126 Add(ExternalReference::f32_ceil_wrapper_function(isolate).address(), |
| 127 "f32_ceil_wrapper"); |
| 128 Add(ExternalReference::f32_nearest_int_wrapper_function(isolate).address(), |
| 129 "f32_nearest_int_wrapper"); |
| 130 Add(ExternalReference::f64_trunc_wrapper_function(isolate).address(), |
| 131 "f64_trunc_wrapper"); |
| 132 Add(ExternalReference::f64_floor_wrapper_function(isolate).address(), |
| 133 "f64_floor_wrapper"); |
| 134 Add(ExternalReference::f64_ceil_wrapper_function(isolate).address(), |
| 135 "f64_ceil_wrapper"); |
| 136 Add(ExternalReference::f64_nearest_int_wrapper_function(isolate).address(), |
| 137 "f64_nearest_int_wrapper"); |
124 Add(ExternalReference::log_enter_external_function(isolate).address(), | 138 Add(ExternalReference::log_enter_external_function(isolate).address(), |
125 "Logger::EnterExternal"); | 139 "Logger::EnterExternal"); |
126 Add(ExternalReference::log_leave_external_function(isolate).address(), | 140 Add(ExternalReference::log_leave_external_function(isolate).address(), |
127 "Logger::LeaveExternal"); | 141 "Logger::LeaveExternal"); |
128 Add(ExternalReference::address_of_minus_one_half().address(), | 142 Add(ExternalReference::address_of_minus_one_half().address(), |
129 "double_constants.minus_one_half"); | 143 "double_constants.minus_one_half"); |
130 Add(ExternalReference::stress_deopt_count(isolate).address(), | 144 Add(ExternalReference::stress_deopt_count(isolate).address(), |
131 "Isolate::stress_deopt_count_address()"); | 145 "Isolate::stress_deopt_count_address()"); |
132 Add(ExternalReference::virtual_handler_register(isolate).address(), | 146 Add(ExternalReference::virtual_handler_register(isolate).address(), |
133 "Isolate::virtual_handler_register()"); | 147 "Isolate::virtual_handler_register()"); |
(...skipping 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2802 SerializedCodeData* scd = new SerializedCodeData(cached_data); | 2816 SerializedCodeData* scd = new SerializedCodeData(cached_data); |
2803 SanityCheckResult r = scd->SanityCheck(isolate, source); | 2817 SanityCheckResult r = scd->SanityCheck(isolate, source); |
2804 if (r == CHECK_SUCCESS) return scd; | 2818 if (r == CHECK_SUCCESS) return scd; |
2805 cached_data->Reject(); | 2819 cached_data->Reject(); |
2806 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); | 2820 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); |
2807 delete scd; | 2821 delete scd; |
2808 return NULL; | 2822 return NULL; |
2809 } | 2823 } |
2810 } // namespace internal | 2824 } // namespace internal |
2811 } // namespace v8 | 2825 } // namespace v8 |
OLD | NEW |