Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: src/snapshot/serialize.cc

Issue 1053143005: Collect type feedback on result of Math.[round|ceil|floor] (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: MIPS port Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Add(ExternalReference::invoke_accessor_getter_callback(isolate).address(), 123 Add(ExternalReference::invoke_accessor_getter_callback(isolate).address(),
124 "InvokeAccessorGetterCallback"); 124 "InvokeAccessorGetterCallback");
125 Add(ExternalReference::flush_icache_function(isolate).address(), 125 Add(ExternalReference::flush_icache_function(isolate).address(),
126 "CpuFeatures::FlushICache"); 126 "CpuFeatures::FlushICache");
127 Add(ExternalReference::log_enter_external_function(isolate).address(), 127 Add(ExternalReference::log_enter_external_function(isolate).address(),
128 "Logger::EnterExternal"); 128 "Logger::EnterExternal");
129 Add(ExternalReference::log_leave_external_function(isolate).address(), 129 Add(ExternalReference::log_leave_external_function(isolate).address(),
130 "Logger::LeaveExternal"); 130 "Logger::LeaveExternal");
131 Add(ExternalReference::address_of_minus_one_half().address(), 131 Add(ExternalReference::address_of_minus_one_half().address(),
132 "double_constants.minus_one_half"); 132 "double_constants.minus_one_half");
133 Add(ExternalReference::address_of_minus_one().address(),
134 "double_constants.minus_one");
133 Add(ExternalReference::stress_deopt_count(isolate).address(), 135 Add(ExternalReference::stress_deopt_count(isolate).address(),
134 "Isolate::stress_deopt_count_address()"); 136 "Isolate::stress_deopt_count_address()");
135 137
136 // Debug addresses 138 // Debug addresses
137 Add(ExternalReference::debug_after_break_target_address(isolate).address(), 139 Add(ExternalReference::debug_after_break_target_address(isolate).address(),
138 "Debug::after_break_target_address()"); 140 "Debug::after_break_target_address()");
139 Add(ExternalReference::debug_restarter_frame_function_pointer_address(isolate) 141 Add(ExternalReference::debug_restarter_frame_function_pointer_address(isolate)
140 .address(), 142 .address(),
141 "Debug::restarter_frame_function_pointer_address()"); 143 "Debug::restarter_frame_function_pointer_address()");
142 Add(ExternalReference::debug_is_active_address(isolate).address(), 144 Add(ExternalReference::debug_is_active_address(isolate).address(),
(...skipping 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after
2592 DisallowHeapAllocation no_gc; 2594 DisallowHeapAllocation no_gc;
2593 SerializedCodeData* scd = new SerializedCodeData(cached_data); 2595 SerializedCodeData* scd = new SerializedCodeData(cached_data);
2594 SanityCheckResult r = scd->SanityCheck(isolate, source); 2596 SanityCheckResult r = scd->SanityCheck(isolate, source);
2595 if (r == CHECK_SUCCESS) return scd; 2597 if (r == CHECK_SUCCESS) return scd;
2596 cached_data->Reject(); 2598 cached_data->Reject();
2597 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); 2599 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r);
2598 delete scd; 2600 delete scd;
2599 return NULL; 2601 return NULL;
2600 } 2602 }
2601 } } // namespace v8::internal 2603 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698