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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Don't install SIMD object without the simd flag. Created 5 years, 5 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
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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 5181 matching lines...) Expand 10 before | Expand all | Expand 10 after
5192 // Check for undetectable objects => false. 5192 // Check for undetectable objects => false.
5193 __ CompareObjectType(r0, r0, r1, FIRST_NONSTRING_TYPE); 5193 __ CompareObjectType(r0, r0, r1, FIRST_NONSTRING_TYPE);
5194 __ b(ge, if_false); 5194 __ b(ge, if_false);
5195 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); 5195 __ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset));
5196 __ tst(r1, Operand(1 << Map::kIsUndetectable)); 5196 __ tst(r1, Operand(1 << Map::kIsUndetectable));
5197 Split(eq, if_true, if_false, fall_through); 5197 Split(eq, if_true, if_false, fall_through);
5198 } else if (String::Equals(check, factory->symbol_string())) { 5198 } else if (String::Equals(check, factory->symbol_string())) {
5199 __ JumpIfSmi(r0, if_false); 5199 __ JumpIfSmi(r0, if_false);
5200 __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE); 5200 __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE);
5201 Split(eq, if_true, if_false, fall_through); 5201 Split(eq, if_true, if_false, fall_through);
5202 } else if (String::Equals(check, factory->float32x4_string())) {
5203 __ JumpIfSmi(r0, if_false);
5204 __ CompareObjectType(r0, r0, r1, FLOAT32X4_TYPE);
5205 Split(eq, if_true, if_false, fall_through);
5202 } else if (String::Equals(check, factory->boolean_string())) { 5206 } else if (String::Equals(check, factory->boolean_string())) {
5203 __ CompareRoot(r0, Heap::kTrueValueRootIndex); 5207 __ CompareRoot(r0, Heap::kTrueValueRootIndex);
5204 __ b(eq, if_true); 5208 __ b(eq, if_true);
5205 __ CompareRoot(r0, Heap::kFalseValueRootIndex); 5209 __ CompareRoot(r0, Heap::kFalseValueRootIndex);
5206 Split(eq, if_true, if_false, fall_through); 5210 Split(eq, if_true, if_false, fall_through);
5207 } else if (String::Equals(check, factory->undefined_string())) { 5211 } else if (String::Equals(check, factory->undefined_string())) {
5208 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); 5212 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex);
5209 __ b(eq, if_true); 5213 __ b(eq, if_true);
5210 __ JumpIfSmi(r0, if_false); 5214 __ JumpIfSmi(r0, if_false);
5211 // Check for undetectable objects => true. 5215 // Check for undetectable objects => true.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
5591 DCHECK(interrupt_address == 5595 DCHECK(interrupt_address ==
5592 isolate->builtins()->OsrAfterStackCheck()->entry()); 5596 isolate->builtins()->OsrAfterStackCheck()->entry());
5593 return OSR_AFTER_STACK_CHECK; 5597 return OSR_AFTER_STACK_CHECK;
5594 } 5598 }
5595 5599
5596 5600
5597 } // namespace internal 5601 } // namespace internal
5598 } // namespace v8 5602 } // namespace v8
5599 5603
5600 #endif // V8_TARGET_ARCH_ARM 5604 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698