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

Side by Side Diff: src/assembler.cc

Issue 2562393002: [wasm] Introduce the TrapIf and TrapUnless operators to generate trap code. (Closed)
Patch Set: Rename UseSourcePosition to IsSourcePositionUsed Created 4 years 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/assembler.h ('k') | src/compiler/arm/code-generator-arm.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 static void f64_mod_wrapper(double* param0, double* param1) { 1194 static void f64_mod_wrapper(double* param0, double* param1) {
1195 WriteDoubleValue(param0, 1195 WriteDoubleValue(param0,
1196 modulo(ReadDoubleValue(param0), ReadDoubleValue(param1))); 1196 modulo(ReadDoubleValue(param0), ReadDoubleValue(param1)));
1197 } 1197 }
1198 1198
1199 ExternalReference ExternalReference::f64_mod_wrapper_function( 1199 ExternalReference ExternalReference::f64_mod_wrapper_function(
1200 Isolate* isolate) { 1200 Isolate* isolate) {
1201 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_mod_wrapper))); 1201 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_mod_wrapper)));
1202 } 1202 }
1203 1203
1204 ExternalReference ExternalReference::wasm_call_trap_callback_for_testing(
1205 Isolate* isolate) {
1206 return ExternalReference(
1207 Redirect(isolate, FUNCTION_ADDR(wasm::call_trap_callback_for_testing)));
1208 }
1209
1204 ExternalReference ExternalReference::log_enter_external_function( 1210 ExternalReference ExternalReference::log_enter_external_function(
1205 Isolate* isolate) { 1211 Isolate* isolate) {
1206 return ExternalReference( 1212 return ExternalReference(
1207 Redirect(isolate, FUNCTION_ADDR(Logger::EnterExternal))); 1213 Redirect(isolate, FUNCTION_ADDR(Logger::EnterExternal)));
1208 } 1214 }
1209 1215
1210 1216
1211 ExternalReference ExternalReference::log_leave_external_function( 1217 ExternalReference ExternalReference::log_leave_external_function(
1212 Isolate* isolate) { 1218 Isolate* isolate) {
1213 return ExternalReference( 1219 return ExternalReference(
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 1930
1925 1931
1926 void Assembler::DataAlign(int m) { 1932 void Assembler::DataAlign(int m) {
1927 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1933 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1928 while ((pc_offset() & (m - 1)) != 0) { 1934 while ((pc_offset() & (m - 1)) != 0) {
1929 db(0); 1935 db(0);
1930 } 1936 }
1931 } 1937 }
1932 } // namespace internal 1938 } // namespace internal
1933 } // namespace v8 1939 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698