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/v8.h" | 5 #include "src/v8.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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 "store_buffer_top"); | 97 "store_buffer_top"); |
98 Add(ExternalReference::address_of_the_hole_nan().address(), "the_hole_nan"); | 98 Add(ExternalReference::address_of_the_hole_nan().address(), "the_hole_nan"); |
99 Add(ExternalReference::get_date_field_function(isolate).address(), | 99 Add(ExternalReference::get_date_field_function(isolate).address(), |
100 "JSDate::GetField"); | 100 "JSDate::GetField"); |
101 Add(ExternalReference::date_cache_stamp(isolate).address(), | 101 Add(ExternalReference::date_cache_stamp(isolate).address(), |
102 "date_cache_stamp"); | 102 "date_cache_stamp"); |
103 Add(ExternalReference::address_of_pending_message_obj(isolate).address(), | 103 Add(ExternalReference::address_of_pending_message_obj(isolate).address(), |
104 "address_of_pending_message_obj"); | 104 "address_of_pending_message_obj"); |
105 Add(ExternalReference::address_of_has_pending_message(isolate).address(), | 105 Add(ExternalReference::address_of_has_pending_message(isolate).address(), |
106 "address_of_has_pending_message"); | 106 "address_of_has_pending_message"); |
107 Add(ExternalReference::address_of_pending_message_script(isolate).address(), | |
108 "pending_message_script"); | |
109 Add(ExternalReference::get_make_code_young_function(isolate).address(), | 107 Add(ExternalReference::get_make_code_young_function(isolate).address(), |
110 "Code::MakeCodeYoung"); | 108 "Code::MakeCodeYoung"); |
111 Add(ExternalReference::cpu_features().address(), "cpu_features"); | 109 Add(ExternalReference::cpu_features().address(), "cpu_features"); |
112 Add(ExternalReference::old_pointer_space_allocation_top_address(isolate) | 110 Add(ExternalReference::old_pointer_space_allocation_top_address(isolate) |
113 .address(), | 111 .address(), |
114 "Heap::OldPointerSpaceAllocationTopAddress"); | 112 "Heap::OldPointerSpaceAllocationTopAddress"); |
115 Add(ExternalReference::old_pointer_space_allocation_limit_address(isolate) | 113 Add(ExternalReference::old_pointer_space_allocation_limit_address(isolate) |
116 .address(), | 114 .address(), |
117 "Heap::OldPointerSpaceAllocationLimitAddress"); | 115 "Heap::OldPointerSpaceAllocationLimitAddress"); |
118 Add(ExternalReference::old_data_space_allocation_top_address(isolate) | 116 Add(ExternalReference::old_data_space_allocation_top_address(isolate) |
(...skipping 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2561 DisallowHeapAllocation no_gc; | 2559 DisallowHeapAllocation no_gc; |
2562 SerializedCodeData* scd = new SerializedCodeData(cached_data); | 2560 SerializedCodeData* scd = new SerializedCodeData(cached_data); |
2563 SanityCheckResult r = scd->SanityCheck(isolate, source); | 2561 SanityCheckResult r = scd->SanityCheck(isolate, source); |
2564 if (r == CHECK_SUCCESS) return scd; | 2562 if (r == CHECK_SUCCESS) return scd; |
2565 cached_data->Reject(); | 2563 cached_data->Reject(); |
2566 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); | 2564 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); |
2567 delete scd; | 2565 delete scd; |
2568 return NULL; | 2566 return NULL; |
2569 } | 2567 } |
2570 } } // namespace v8::internal | 2568 } } // namespace v8::internal |
OLD | NEW |