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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 "HandleScope::level"); | 75 "HandleScope::level"); |
76 Add(ExternalReference::new_deoptimizer_function(isolate).address(), | 76 Add(ExternalReference::new_deoptimizer_function(isolate).address(), |
77 "Deoptimizer::New()"); | 77 "Deoptimizer::New()"); |
78 Add(ExternalReference::compute_output_frames_function(isolate).address(), | 78 Add(ExternalReference::compute_output_frames_function(isolate).address(), |
79 "Deoptimizer::ComputeOutputFrames()"); | 79 "Deoptimizer::ComputeOutputFrames()"); |
80 Add(ExternalReference::address_of_min_int().address(), | 80 Add(ExternalReference::address_of_min_int().address(), |
81 "LDoubleConstant::min_int"); | 81 "LDoubleConstant::min_int"); |
82 Add(ExternalReference::address_of_one_half().address(), | 82 Add(ExternalReference::address_of_one_half().address(), |
83 "LDoubleConstant::one_half"); | 83 "LDoubleConstant::one_half"); |
84 Add(ExternalReference::isolate_address(isolate).address(), "isolate"); | 84 Add(ExternalReference::isolate_address(isolate).address(), "isolate"); |
| 85 Add(ExternalReference::interpreter_dispatch_table_address(isolate).address(), |
| 86 "Interpreter::dispatch_table_address"); |
85 Add(ExternalReference::address_of_negative_infinity().address(), | 87 Add(ExternalReference::address_of_negative_infinity().address(), |
86 "LDoubleConstant::negative_infinity"); | 88 "LDoubleConstant::negative_infinity"); |
87 Add(ExternalReference::power_double_double_function(isolate).address(), | 89 Add(ExternalReference::power_double_double_function(isolate).address(), |
88 "power_double_double_function"); | 90 "power_double_double_function"); |
89 Add(ExternalReference::power_double_int_function(isolate).address(), | 91 Add(ExternalReference::power_double_int_function(isolate).address(), |
90 "power_double_int_function"); | 92 "power_double_int_function"); |
91 Add(ExternalReference::math_log_double_function(isolate).address(), | 93 Add(ExternalReference::math_log_double_function(isolate).address(), |
92 "std::log"); | 94 "std::log"); |
93 Add(ExternalReference::store_buffer_top(isolate).address(), | 95 Add(ExternalReference::store_buffer_top(isolate).address(), |
94 "store_buffer_top"); | 96 "store_buffer_top"); |
(...skipping 2745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2840 SerializedCodeData* scd = new SerializedCodeData(cached_data); | 2842 SerializedCodeData* scd = new SerializedCodeData(cached_data); |
2841 SanityCheckResult r = scd->SanityCheck(isolate, source); | 2843 SanityCheckResult r = scd->SanityCheck(isolate, source); |
2842 if (r == CHECK_SUCCESS) return scd; | 2844 if (r == CHECK_SUCCESS) return scd; |
2843 cached_data->Reject(); | 2845 cached_data->Reject(); |
2844 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); | 2846 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); |
2845 delete scd; | 2847 delete scd; |
2846 return NULL; | 2848 return NULL; |
2847 } | 2849 } |
2848 } // namespace internal | 2850 } // namespace internal |
2849 } // namespace v8 | 2851 } // namespace v8 |
OLD | NEW |