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

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

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: samevalue.js tweak. 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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
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 5208 matching lines...) Expand 10 before | Expand all | Expand 10 after
5219 __ CompareObjectType(r3, r3, r4, FIRST_NONSTRING_TYPE); 5219 __ CompareObjectType(r3, r3, r4, FIRST_NONSTRING_TYPE);
5220 __ bge(if_false); 5220 __ bge(if_false);
5221 __ lbz(r4, FieldMemOperand(r3, Map::kBitFieldOffset)); 5221 __ lbz(r4, FieldMemOperand(r3, Map::kBitFieldOffset));
5222 STATIC_ASSERT((1 << Map::kIsUndetectable) < 0x8000); 5222 STATIC_ASSERT((1 << Map::kIsUndetectable) < 0x8000);
5223 __ andi(r0, r4, Operand(1 << Map::kIsUndetectable)); 5223 __ andi(r0, r4, Operand(1 << Map::kIsUndetectable));
5224 Split(eq, if_true, if_false, fall_through, cr0); 5224 Split(eq, if_true, if_false, fall_through, cr0);
5225 } else if (String::Equals(check, factory->symbol_string())) { 5225 } else if (String::Equals(check, factory->symbol_string())) {
5226 __ JumpIfSmi(r3, if_false); 5226 __ JumpIfSmi(r3, if_false);
5227 __ CompareObjectType(r3, r3, r4, SYMBOL_TYPE); 5227 __ CompareObjectType(r3, r3, r4, SYMBOL_TYPE);
5228 Split(eq, if_true, if_false, fall_through); 5228 Split(eq, if_true, if_false, fall_through);
5229 } else if (String::Equals(check, factory->float32x4_string())) {
5230 __ JumpIfSmi(r3, if_false);
5231 __ CompareObjectType(r3, r3, r4, FLOAT32X4_TYPE);
5232 Split(eq, if_true, if_false, fall_through);
5229 } else if (String::Equals(check, factory->boolean_string())) { 5233 } else if (String::Equals(check, factory->boolean_string())) {
5230 __ CompareRoot(r3, Heap::kTrueValueRootIndex); 5234 __ CompareRoot(r3, Heap::kTrueValueRootIndex);
5231 __ beq(if_true); 5235 __ beq(if_true);
5232 __ CompareRoot(r3, Heap::kFalseValueRootIndex); 5236 __ CompareRoot(r3, Heap::kFalseValueRootIndex);
5233 Split(eq, if_true, if_false, fall_through); 5237 Split(eq, if_true, if_false, fall_through);
5234 } else if (String::Equals(check, factory->undefined_string())) { 5238 } else if (String::Equals(check, factory->undefined_string())) {
5235 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex); 5239 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex);
5236 __ beq(if_true); 5240 __ beq(if_true);
5237 __ JumpIfSmi(r3, if_false); 5241 __ JumpIfSmi(r3, if_false);
5238 // Check for undetectable objects => true. 5242 // Check for undetectable objects => true.
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
5547 return ON_STACK_REPLACEMENT; 5551 return ON_STACK_REPLACEMENT;
5548 } 5552 }
5549 5553
5550 DCHECK(interrupt_address == 5554 DCHECK(interrupt_address ==
5551 isolate->builtins()->OsrAfterStackCheck()->entry()); 5555 isolate->builtins()->OsrAfterStackCheck()->entry());
5552 return OSR_AFTER_STACK_CHECK; 5556 return OSR_AFTER_STACK_CHECK;
5553 } 5557 }
5554 } // namespace internal 5558 } // namespace internal
5555 } // namespace v8 5559 } // namespace v8
5556 #endif // V8_TARGET_ARCH_PPC 5560 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698