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

Side by Side Diff: src/compiler/wasm-compiler.cc

Issue 2679853002: X87: [wasm] TrapIf and TrapUnless TurboFan operators implemented on ia32. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | src/compiler/x87/code-generator-x87.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/wasm-compiler.h" 5 #include "src/compiler/wasm-compiler.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/isolate-inl.h" 9 #include "src/isolate-inl.h"
10 10
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // We use Runtime::kNumFunctions as a marker to tell the code generator 188 // We use Runtime::kNumFunctions as a marker to tell the code generator
189 // to generate a call to a testing c-function instead of a runtime 189 // to generate a call to a testing c-function instead of a runtime
190 // function. This code should only be called from a cctest. 190 // function. This code should only be called from a cctest.
191 return Runtime::kNumFunctions; 191 return Runtime::kNumFunctions;
192 } 192 }
193 } 193 }
194 194
195 #if V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_ARM || \ 195 #if V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_ARM || \
196 V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 || \ 196 V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 || \
197 V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64 || V8_TARGET_ARCH_S390 || \ 197 V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64 || V8_TARGET_ARCH_S390 || \
198 V8_TARGET_ARCH_S390X 198 V8_TARGET_ARCH_S390X || V8_TARGET_ARCH_X87
199 #define WASM_TRAP_IF_SUPPORTED 199 #define WASM_TRAP_IF_SUPPORTED
200 #endif 200 #endif
201 201
202 // Add a trap if {cond} is true. 202 // Add a trap if {cond} is true.
203 void AddTrapIfTrue(wasm::TrapReason reason, Node* cond, 203 void AddTrapIfTrue(wasm::TrapReason reason, Node* cond,
204 wasm::WasmCodePosition position) { 204 wasm::WasmCodePosition position) {
205 #ifdef WASM_TRAP_IF_SUPPORTED 205 #ifdef WASM_TRAP_IF_SUPPORTED
206 if (FLAG_wasm_trap_if) { 206 if (FLAG_wasm_trap_if) {
207 int32_t trap_id = GetFunctionIdForTrap(reason); 207 int32_t trap_id = GetFunctionIdForTrap(reason);
208 Node* node = graph()->NewNode(common()->TrapIf(trap_id), cond, 208 Node* node = graph()->NewNode(common()->TrapIf(trap_id), cond,
(...skipping 3812 matching lines...) Expand 10 before | Expand all | Expand 10 after
4021 function_->code_start_offset), 4021 function_->code_start_offset),
4022 compile_ms); 4022 compile_ms);
4023 } 4023 }
4024 4024
4025 return code; 4025 return code;
4026 } 4026 }
4027 4027
4028 } // namespace compiler 4028 } // namespace compiler
4029 } // namespace internal 4029 } // namespace internal
4030 } // namespace v8 4030 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/x87/code-generator-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698