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

Side by Side Diff: src/s390/code-stubs-s390.cc

Issue 2684313003: Remove SIMD.js from V8. (Closed)
Patch Set: Rebase. 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 | « src/runtime/runtime-simd.cc ('k') | src/s390/interface-descriptors-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // so we do the second best thing - test it ourselves. 199 // so we do the second best thing - test it ourselves.
200 // They are both equal and they are not both Smis so both of them are not 200 // They are both equal and they are not both Smis so both of them are not
201 // Smis. If it's not a heap number, then return equal. 201 // Smis. If it's not a heap number, then return equal.
202 if (cond == lt || cond == gt) { 202 if (cond == lt || cond == gt) {
203 // Call runtime on identical JSObjects. 203 // Call runtime on identical JSObjects.
204 __ CompareObjectType(r2, r6, r6, FIRST_JS_RECEIVER_TYPE); 204 __ CompareObjectType(r2, r6, r6, FIRST_JS_RECEIVER_TYPE);
205 __ bge(slow); 205 __ bge(slow);
206 // Call runtime on identical symbols since we need to throw a TypeError. 206 // Call runtime on identical symbols since we need to throw a TypeError.
207 __ CmpP(r6, Operand(SYMBOL_TYPE)); 207 __ CmpP(r6, Operand(SYMBOL_TYPE));
208 __ beq(slow); 208 __ beq(slow);
209 // Call runtime on identical SIMD values since we must throw a TypeError.
210 __ CmpP(r6, Operand(SIMD128_VALUE_TYPE));
211 __ beq(slow);
212 } else { 209 } else {
213 __ CompareObjectType(r2, r6, r6, HEAP_NUMBER_TYPE); 210 __ CompareObjectType(r2, r6, r6, HEAP_NUMBER_TYPE);
214 __ beq(&heap_number); 211 __ beq(&heap_number);
215 // Comparing JS objects with <=, >= is complicated. 212 // Comparing JS objects with <=, >= is complicated.
216 if (cond != eq) { 213 if (cond != eq) {
217 __ CmpP(r6, Operand(FIRST_JS_RECEIVER_TYPE)); 214 __ CmpP(r6, Operand(FIRST_JS_RECEIVER_TYPE));
218 __ bge(slow); 215 __ bge(slow);
219 // Call runtime on identical symbols since we need to throw a TypeError. 216 // Call runtime on identical symbols since we need to throw a TypeError.
220 __ CmpP(r6, Operand(SYMBOL_TYPE)); 217 __ CmpP(r6, Operand(SYMBOL_TYPE));
221 __ beq(slow); 218 __ beq(slow);
222 // Call runtime on identical SIMD values since we must throw a TypeError.
223 __ CmpP(r6, Operand(SIMD128_VALUE_TYPE));
224 __ beq(slow);
225 // Normally here we fall through to return_equal, but undefined is 219 // Normally here we fall through to return_equal, but undefined is
226 // special: (undefined == undefined) == true, but 220 // special: (undefined == undefined) == true, but
227 // (undefined <= undefined) == false! See ECMAScript 11.8.5. 221 // (undefined <= undefined) == false! See ECMAScript 11.8.5.
228 if (cond == le || cond == ge) { 222 if (cond == le || cond == ge) {
229 __ CmpP(r6, Operand(ODDBALL_TYPE)); 223 __ CmpP(r6, Operand(ODDBALL_TYPE));
230 __ bne(&return_equal); 224 __ bne(&return_equal);
231 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex); 225 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex);
232 __ bne(&return_equal); 226 __ bne(&return_equal);
233 if (cond == le) { 227 if (cond == le) {
234 // undefined <= undefined should fail. 228 // undefined <= undefined should fail.
(...skipping 3243 matching lines...) Expand 10 before | Expand all | Expand 10 after
3478 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 3472 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
3479 kStackUnwindSpace, NULL, return_value_operand, NULL); 3473 kStackUnwindSpace, NULL, return_value_operand, NULL);
3480 } 3474 }
3481 3475
3482 #undef __ 3476 #undef __
3483 3477
3484 } // namespace internal 3478 } // namespace internal
3485 } // namespace v8 3479 } // namespace v8
3486 3480
3487 #endif // V8_TARGET_ARCH_S390 3481 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/runtime/runtime-simd.cc ('k') | src/s390/interface-descriptors-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698