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

Side by Side Diff: src/snapshot/serializer-common.cc

Issue 1729833002: Add wasm internal opcodes for asm.js stdlib functions we're missing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 9 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/compiler/wasm-compiler.cc ('k') | src/wasm/asm-wasm-builder.cc » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/serializer-common.h" 5 #include "src/snapshot/serializer-common.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/counters.h" 9 #include "src/counters.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 Add(ExternalReference::f32_nearest_int_wrapper_function(isolate).address(), 108 Add(ExternalReference::f32_nearest_int_wrapper_function(isolate).address(),
109 "f32_nearest_int_wrapper"); 109 "f32_nearest_int_wrapper");
110 Add(ExternalReference::f64_trunc_wrapper_function(isolate).address(), 110 Add(ExternalReference::f64_trunc_wrapper_function(isolate).address(),
111 "f64_trunc_wrapper"); 111 "f64_trunc_wrapper");
112 Add(ExternalReference::f64_floor_wrapper_function(isolate).address(), 112 Add(ExternalReference::f64_floor_wrapper_function(isolate).address(),
113 "f64_floor_wrapper"); 113 "f64_floor_wrapper");
114 Add(ExternalReference::f64_ceil_wrapper_function(isolate).address(), 114 Add(ExternalReference::f64_ceil_wrapper_function(isolate).address(),
115 "f64_ceil_wrapper"); 115 "f64_ceil_wrapper");
116 Add(ExternalReference::f64_nearest_int_wrapper_function(isolate).address(), 116 Add(ExternalReference::f64_nearest_int_wrapper_function(isolate).address(),
117 "f64_nearest_int_wrapper"); 117 "f64_nearest_int_wrapper");
118
119 Add(ExternalReference::f64_acos_wrapper_function(isolate).address(),
120 "f64_acos_wrapper");
121 Add(ExternalReference::f64_asin_wrapper_function(isolate).address(),
122 "f64_asin_wrapper");
123 Add(ExternalReference::f64_atan_wrapper_function(isolate).address(),
124 "f64_atan_wrapper");
125 Add(ExternalReference::f64_cos_wrapper_function(isolate).address(),
126 "f64_cos_wrapper");
127 Add(ExternalReference::f64_sin_wrapper_function(isolate).address(),
128 "f64_sin_wrapper");
129 Add(ExternalReference::f64_tan_wrapper_function(isolate).address(),
130 "f64_tan_wrapper");
131 Add(ExternalReference::f64_exp_wrapper_function(isolate).address(),
132 "f64_exp_wrapper");
133 Add(ExternalReference::f64_log_wrapper_function(isolate).address(),
134 "f64_log_wrapper");
135 Add(ExternalReference::f64_pow_wrapper_function(isolate).address(),
136 "f64_pow_wrapper");
137 Add(ExternalReference::f64_atan2_wrapper_function(isolate).address(),
138 "f64_atan2_wrapper");
139 Add(ExternalReference::f64_mod_wrapper_function(isolate).address(),
140 "f64_mod_wrapper");
141
118 Add(ExternalReference::log_enter_external_function(isolate).address(), 142 Add(ExternalReference::log_enter_external_function(isolate).address(),
119 "Logger::EnterExternal"); 143 "Logger::EnterExternal");
120 Add(ExternalReference::log_leave_external_function(isolate).address(), 144 Add(ExternalReference::log_leave_external_function(isolate).address(),
121 "Logger::LeaveExternal"); 145 "Logger::LeaveExternal");
122 Add(ExternalReference::address_of_minus_one_half().address(), 146 Add(ExternalReference::address_of_minus_one_half().address(),
123 "double_constants.minus_one_half"); 147 "double_constants.minus_one_half");
124 Add(ExternalReference::stress_deopt_count(isolate).address(), 148 Add(ExternalReference::stress_deopt_count(isolate).address(),
125 "Isolate::stress_deopt_count_address()"); 149 "Isolate::stress_deopt_count_address()");
126 Add(ExternalReference::virtual_handler_register(isolate).address(), 150 Add(ExternalReference::virtual_handler_register(isolate).address(),
127 "Isolate::virtual_handler_register()"); 151 "Isolate::virtual_handler_register()");
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 if (cache->at(i)->IsUndefined()) break; 390 if (cache->at(i)->IsUndefined()) break;
367 } 391 }
368 } 392 }
369 393
370 bool SerializerDeserializer::CanBeDeferred(HeapObject* o) { 394 bool SerializerDeserializer::CanBeDeferred(HeapObject* o) {
371 return !o->IsString() && !o->IsScript(); 395 return !o->IsString() && !o->IsScript();
372 } 396 }
373 397
374 } // namespace internal 398 } // namespace internal
375 } // namespace v8 399 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/asm-wasm-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698