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

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

Issue 2695653005: 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/arm/interface-descriptors-arm.cc ('k') | src/arm64/interface-descriptors-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // They are both equal and they are not both Smis so both of them are not 156 // They are both equal and they are not both Smis so both of them are not
157 // Smis. If it's not a heap number, then return equal. 157 // Smis. If it's not a heap number, then return equal.
158 Register right_type = scratch; 158 Register right_type = scratch;
159 if ((cond == lt) || (cond == gt)) { 159 if ((cond == lt) || (cond == gt)) {
160 // Call runtime on identical JSObjects. Otherwise return equal. 160 // Call runtime on identical JSObjects. Otherwise return equal.
161 __ JumpIfObjectType(right, right_type, right_type, FIRST_JS_RECEIVER_TYPE, 161 __ JumpIfObjectType(right, right_type, right_type, FIRST_JS_RECEIVER_TYPE,
162 slow, ge); 162 slow, ge);
163 // Call runtime on identical symbols since we need to throw a TypeError. 163 // Call runtime on identical symbols since we need to throw a TypeError.
164 __ Cmp(right_type, SYMBOL_TYPE); 164 __ Cmp(right_type, SYMBOL_TYPE);
165 __ B(eq, slow); 165 __ B(eq, slow);
166 // Call runtime on identical SIMD values since we must throw a TypeError.
167 __ Cmp(right_type, SIMD128_VALUE_TYPE);
168 __ B(eq, slow);
166 } else if (cond == eq) { 169 } else if (cond == eq) {
167 __ JumpIfHeapNumber(right, &heap_number); 170 __ JumpIfHeapNumber(right, &heap_number);
168 } else { 171 } else {
169 __ JumpIfObjectType(right, right_type, right_type, HEAP_NUMBER_TYPE, 172 __ JumpIfObjectType(right, right_type, right_type, HEAP_NUMBER_TYPE,
170 &heap_number); 173 &heap_number);
171 // Comparing JS objects with <=, >= is complicated. 174 // Comparing JS objects with <=, >= is complicated.
172 __ Cmp(right_type, FIRST_JS_RECEIVER_TYPE); 175 __ Cmp(right_type, FIRST_JS_RECEIVER_TYPE);
173 __ B(ge, slow); 176 __ B(ge, slow);
174 // Call runtime on identical symbols since we need to throw a TypeError. 177 // Call runtime on identical symbols since we need to throw a TypeError.
175 __ Cmp(right_type, SYMBOL_TYPE); 178 __ Cmp(right_type, SYMBOL_TYPE);
176 __ B(eq, slow); 179 __ B(eq, slow);
180 // Call runtime on identical SIMD values since we must throw a TypeError.
181 __ Cmp(right_type, SIMD128_VALUE_TYPE);
182 __ B(eq, slow);
177 // Normally here we fall through to return_equal, but undefined is 183 // Normally here we fall through to return_equal, but undefined is
178 // special: (undefined == undefined) == true, but 184 // special: (undefined == undefined) == true, but
179 // (undefined <= undefined) == false! See ECMAScript 11.8.5. 185 // (undefined <= undefined) == false! See ECMAScript 11.8.5.
180 if ((cond == le) || (cond == ge)) { 186 if ((cond == le) || (cond == ge)) {
181 __ Cmp(right_type, ODDBALL_TYPE); 187 __ Cmp(right_type, ODDBALL_TYPE);
182 __ B(ne, &return_equal); 188 __ B(ne, &return_equal);
183 __ JumpIfNotRoot(right, Heap::kUndefinedValueRootIndex, &return_equal); 189 __ JumpIfNotRoot(right, Heap::kUndefinedValueRootIndex, &return_equal);
184 if (cond == le) { 190 if (cond == le) {
185 // undefined <= undefined should fail. 191 // undefined <= undefined should fail.
186 __ Mov(result, GREATER); 192 __ Mov(result, GREATER);
(...skipping 3416 matching lines...) Expand 10 before | Expand all | Expand 10 after
3603 kStackUnwindSpace, NULL, spill_offset, 3609 kStackUnwindSpace, NULL, spill_offset,
3604 return_value_operand, NULL); 3610 return_value_operand, NULL);
3605 } 3611 }
3606 3612
3607 #undef __ 3613 #undef __
3608 3614
3609 } // namespace internal 3615 } // namespace internal
3610 } // namespace v8 3616 } // namespace v8
3611 3617
3612 #endif // V8_TARGET_ARCH_ARM64 3618 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/interface-descriptors-arm.cc ('k') | src/arm64/interface-descriptors-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698