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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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/flag-definitions.h ('k') | src/full-codegen/arm64/full-codegen-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 2590 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 __ JumpIfSmi(r0, if_false); 2601 __ JumpIfSmi(r0, if_false);
2602 __ CompareRoot(r0, Heap::kNullValueRootIndex); 2602 __ CompareRoot(r0, Heap::kNullValueRootIndex);
2603 __ b(eq, if_true); 2603 __ b(eq, if_true);
2604 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 2604 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
2605 __ CompareObjectType(r0, r0, r1, FIRST_JS_RECEIVER_TYPE); 2605 __ CompareObjectType(r0, r0, r1, FIRST_JS_RECEIVER_TYPE);
2606 __ b(lt, if_false); 2606 __ b(lt, if_false);
2607 // Check for callable or undetectable objects => false. 2607 // Check for callable or undetectable objects => false.
2608 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); 2608 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset));
2609 __ tst(r1, Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable))); 2609 __ tst(r1, Operand((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable)));
2610 Split(eq, if_true, if_false, fall_through); 2610 Split(eq, if_true, if_false, fall_through);
2611 // clang-format off
2612 #define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \
2613 } else if (String::Equals(check, factory->type##_string())) { \
2614 __ JumpIfSmi(r0, if_false); \
2615 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); \
2616 __ CompareRoot(r0, Heap::k##Type##MapRootIndex); \
2617 Split(eq, if_true, if_false, fall_through);
2618 SIMD128_TYPES(SIMD128_TYPE)
2619 #undef SIMD128_TYPE
2620 // clang-format on
2621 } else { 2611 } else {
2622 if (if_false != fall_through) __ jmp(if_false); 2612 if (if_false != fall_through) __ jmp(if_false);
2623 } 2613 }
2624 context()->Plug(if_true, if_false); 2614 context()->Plug(if_true, if_false);
2625 } 2615 }
2626 2616
2627 2617
2628 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { 2618 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
2629 Comment cmnt(masm_, "[ CompareOperation"); 2619 Comment cmnt(masm_, "[ CompareOperation");
2630 2620
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
2908 DCHECK(interrupt_address == 2898 DCHECK(interrupt_address ==
2909 isolate->builtins()->OnStackReplacement()->entry()); 2899 isolate->builtins()->OnStackReplacement()->entry());
2910 return ON_STACK_REPLACEMENT; 2900 return ON_STACK_REPLACEMENT;
2911 } 2901 }
2912 2902
2913 2903
2914 } // namespace internal 2904 } // namespace internal
2915 } // namespace v8 2905 } // namespace v8
2916 2906
2917 #endif // V8_TARGET_ARCH_ARM 2907 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698