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

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

Issue 2692933002: Revert of Remove SIMD.js from V8. (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 | « 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);
209 } else { 212 } else {
210 __ CompareObjectType(r2, r6, r6, HEAP_NUMBER_TYPE); 213 __ CompareObjectType(r2, r6, r6, HEAP_NUMBER_TYPE);
211 __ beq(&heap_number); 214 __ beq(&heap_number);
212 // Comparing JS objects with <=, >= is complicated. 215 // Comparing JS objects with <=, >= is complicated.
213 if (cond != eq) { 216 if (cond != eq) {
214 __ CmpP(r6, Operand(FIRST_JS_RECEIVER_TYPE)); 217 __ CmpP(r6, Operand(FIRST_JS_RECEIVER_TYPE));
215 __ bge(slow); 218 __ bge(slow);
216 // Call runtime on identical symbols since we need to throw a TypeError. 219 // Call runtime on identical symbols since we need to throw a TypeError.
217 __ CmpP(r6, Operand(SYMBOL_TYPE)); 220 __ CmpP(r6, Operand(SYMBOL_TYPE));
218 __ beq(slow); 221 __ 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);
219 // Normally here we fall through to return_equal, but undefined is 225 // Normally here we fall through to return_equal, but undefined is
220 // special: (undefined == undefined) == true, but 226 // special: (undefined == undefined) == true, but
221 // (undefined <= undefined) == false! See ECMAScript 11.8.5. 227 // (undefined <= undefined) == false! See ECMAScript 11.8.5.
222 if (cond == le || cond == ge) { 228 if (cond == le || cond == ge) {
223 __ CmpP(r6, Operand(ODDBALL_TYPE)); 229 __ CmpP(r6, Operand(ODDBALL_TYPE));
224 __ bne(&return_equal); 230 __ bne(&return_equal);
225 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex); 231 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex);
226 __ bne(&return_equal); 232 __ bne(&return_equal);
227 if (cond == le) { 233 if (cond == le) {
228 // undefined <= undefined should fail. 234 // undefined <= undefined should fail.
(...skipping 3243 matching lines...) Expand 10 before | Expand all | Expand 10 after
3472 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 3478 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
3473 kStackUnwindSpace, NULL, return_value_operand, NULL); 3479 kStackUnwindSpace, NULL, return_value_operand, NULL);
3474 } 3480 }
3475 3481
3476 #undef __ 3482 #undef __
3477 3483
3478 } // namespace internal 3484 } // namespace internal
3479 } // namespace v8 3485 } // namespace v8
3480 3486
3481 #endif // V8_TARGET_ARCH_S390 3487 #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