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

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

Issue 1638283004: [wasm] Backoff implementation for F64Trunc using std::trunc. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@init-root-register
Patch Set: Use math.h trunc instead of std::trunc. Created 4 years, 10 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
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/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
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(),
123 "trunc64_wrapper");
122 Add(ExternalReference::log_enter_external_function(isolate).address(), 124 Add(ExternalReference::log_enter_external_function(isolate).address(),
123 "Logger::EnterExternal"); 125 "Logger::EnterExternal");
124 Add(ExternalReference::log_leave_external_function(isolate).address(), 126 Add(ExternalReference::log_leave_external_function(isolate).address(),
125 "Logger::LeaveExternal"); 127 "Logger::LeaveExternal");
126 Add(ExternalReference::address_of_minus_one_half().address(), 128 Add(ExternalReference::address_of_minus_one_half().address(),
127 "double_constants.minus_one_half"); 129 "double_constants.minus_one_half");
128 Add(ExternalReference::stress_deopt_count(isolate).address(), 130 Add(ExternalReference::stress_deopt_count(isolate).address(),
129 "Isolate::stress_deopt_count_address()"); 131 "Isolate::stress_deopt_count_address()");
130 Add(ExternalReference::virtual_handler_register(isolate).address(), 132 Add(ExternalReference::virtual_handler_register(isolate).address(),
131 "Isolate::virtual_handler_register()"); 133 "Isolate::virtual_handler_register()");
(...skipping 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after
2800 SerializedCodeData* scd = new SerializedCodeData(cached_data); 2802 SerializedCodeData* scd = new SerializedCodeData(cached_data);
2801 SanityCheckResult r = scd->SanityCheck(isolate, source); 2803 SanityCheckResult r = scd->SanityCheck(isolate, source);
2802 if (r == CHECK_SUCCESS) return scd; 2804 if (r == CHECK_SUCCESS) return scd;
2803 cached_data->Reject(); 2805 cached_data->Reject();
2804 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); 2806 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r);
2805 delete scd; 2807 delete scd;
2806 return NULL; 2808 return NULL;
2807 } 2809 }
2808 } // namespace internal 2810 } // namespace internal
2809 } // namespace v8 2811 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698