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

Side by Side Diff: src/ppc/code-stubs-ppc.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/objects-printer.cc ('k') | src/ppc/interface-descriptors-ppc.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_PPC 5 #if V8_TARGET_ARCH_PPC
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // so we do the second best thing - test it ourselves. 198 // so we do the second best thing - test it ourselves.
199 // They are both equal and they are not both Smis so both of them are not 199 // They are both equal and they are not both Smis so both of them are not
200 // Smis. If it's not a heap number, then return equal. 200 // Smis. If it's not a heap number, then return equal.
201 if (cond == lt || cond == gt) { 201 if (cond == lt || cond == gt) {
202 // Call runtime on identical JSObjects. 202 // Call runtime on identical JSObjects.
203 __ CompareObjectType(r3, r7, r7, FIRST_JS_RECEIVER_TYPE); 203 __ CompareObjectType(r3, r7, r7, FIRST_JS_RECEIVER_TYPE);
204 __ bge(slow); 204 __ bge(slow);
205 // Call runtime on identical symbols since we need to throw a TypeError. 205 // Call runtime on identical symbols since we need to throw a TypeError.
206 __ cmpi(r7, Operand(SYMBOL_TYPE)); 206 __ cmpi(r7, Operand(SYMBOL_TYPE));
207 __ beq(slow); 207 __ beq(slow);
208 // Call runtime on identical SIMD values since we must throw a TypeError.
209 __ cmpi(r7, Operand(SIMD128_VALUE_TYPE));
210 __ beq(slow);
211 } else { 208 } else {
212 __ CompareObjectType(r3, r7, r7, HEAP_NUMBER_TYPE); 209 __ CompareObjectType(r3, r7, r7, HEAP_NUMBER_TYPE);
213 __ beq(&heap_number); 210 __ beq(&heap_number);
214 // Comparing JS objects with <=, >= is complicated. 211 // Comparing JS objects with <=, >= is complicated.
215 if (cond != eq) { 212 if (cond != eq) {
216 __ cmpi(r7, Operand(FIRST_JS_RECEIVER_TYPE)); 213 __ cmpi(r7, Operand(FIRST_JS_RECEIVER_TYPE));
217 __ bge(slow); 214 __ bge(slow);
218 // Call runtime on identical symbols since we need to throw a TypeError. 215 // Call runtime on identical symbols since we need to throw a TypeError.
219 __ cmpi(r7, Operand(SYMBOL_TYPE)); 216 __ cmpi(r7, Operand(SYMBOL_TYPE));
220 __ beq(slow); 217 __ beq(slow);
221 // Call runtime on identical SIMD values since we must throw a TypeError.
222 __ cmpi(r7, Operand(SIMD128_VALUE_TYPE));
223 __ beq(slow);
224 // Normally here we fall through to return_equal, but undefined is 218 // Normally here we fall through to return_equal, but undefined is
225 // special: (undefined == undefined) == true, but 219 // special: (undefined == undefined) == true, but
226 // (undefined <= undefined) == false! See ECMAScript 11.8.5. 220 // (undefined <= undefined) == false! See ECMAScript 11.8.5.
227 if (cond == le || cond == ge) { 221 if (cond == le || cond == ge) {
228 __ cmpi(r7, Operand(ODDBALL_TYPE)); 222 __ cmpi(r7, Operand(ODDBALL_TYPE));
229 __ bne(&return_equal); 223 __ bne(&return_equal);
230 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex); 224 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex);
231 __ cmp(r3, r5); 225 __ cmp(r3, r5);
232 __ bne(&return_equal); 226 __ bne(&return_equal);
233 if (cond == le) { 227 if (cond == le) {
(...skipping 3295 matching lines...) Expand 10 before | Expand all | Expand 10 after
3529 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); 3523 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize);
3530 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 3524 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
3531 kStackUnwindSpace, NULL, return_value_operand, NULL); 3525 kStackUnwindSpace, NULL, return_value_operand, NULL);
3532 } 3526 }
3533 3527
3534 #undef __ 3528 #undef __
3535 } // namespace internal 3529 } // namespace internal
3536 } // namespace v8 3530 } // namespace v8
3537 3531
3538 #endif // V8_TARGET_ARCH_PPC 3532 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/ppc/interface-descriptors-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698