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

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: Back out changes to include/v8.h 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
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/ppc/lithium-codegen-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 #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 5230 matching lines...) Expand 10 before | Expand all | Expand 10 after
5241 __ CompareObjectType(r3, r3, r4, FIRST_NONSTRING_TYPE); 5241 __ CompareObjectType(r3, r3, r4, FIRST_NONSTRING_TYPE);
5242 __ bge(if_false); 5242 __ bge(if_false);
5243 __ lbz(r4, FieldMemOperand(r3, Map::kBitFieldOffset)); 5243 __ lbz(r4, FieldMemOperand(r3, Map::kBitFieldOffset));
5244 STATIC_ASSERT((1 << Map::kIsUndetectable) < 0x8000); 5244 STATIC_ASSERT((1 << Map::kIsUndetectable) < 0x8000);
5245 __ andi(r0, r4, Operand(1 << Map::kIsUndetectable)); 5245 __ andi(r0, r4, Operand(1 << Map::kIsUndetectable));
5246 Split(eq, if_true, if_false, fall_through, cr0); 5246 Split(eq, if_true, if_false, fall_through, cr0);
5247 } else if (String::Equals(check, factory->symbol_string())) { 5247 } else if (String::Equals(check, factory->symbol_string())) {
5248 __ JumpIfSmi(r3, if_false); 5248 __ JumpIfSmi(r3, if_false);
5249 __ CompareObjectType(r3, r3, r4, SYMBOL_TYPE); 5249 __ CompareObjectType(r3, r3, r4, SYMBOL_TYPE);
5250 Split(eq, if_true, if_false, fall_through); 5250 Split(eq, if_true, if_false, fall_through);
5251 } else if (String::Equals(check, factory->float32x4_string())) {
5252 __ JumpIfSmi(r3, if_false);
5253 __ CompareObjectType(r3, r3, r4, FLOAT32X4_TYPE);
5254 Split(eq, if_true, if_false, fall_through);
5251 } else if (String::Equals(check, factory->boolean_string())) { 5255 } else if (String::Equals(check, factory->boolean_string())) {
5252 __ CompareRoot(r3, Heap::kTrueValueRootIndex); 5256 __ CompareRoot(r3, Heap::kTrueValueRootIndex);
5253 __ beq(if_true); 5257 __ beq(if_true);
5254 __ CompareRoot(r3, Heap::kFalseValueRootIndex); 5258 __ CompareRoot(r3, Heap::kFalseValueRootIndex);
5255 Split(eq, if_true, if_false, fall_through); 5259 Split(eq, if_true, if_false, fall_through);
5256 } else if (String::Equals(check, factory->undefined_string())) { 5260 } else if (String::Equals(check, factory->undefined_string())) {
5257 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex); 5261 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex);
5258 __ beq(if_true); 5262 __ beq(if_true);
5259 __ JumpIfSmi(r3, if_false); 5263 __ JumpIfSmi(r3, if_false);
5260 // Check for undetectable objects => true. 5264 // Check for undetectable objects => true.
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
5569 return ON_STACK_REPLACEMENT; 5573 return ON_STACK_REPLACEMENT;
5570 } 5574 }
5571 5575
5572 DCHECK(interrupt_address == 5576 DCHECK(interrupt_address ==
5573 isolate->builtins()->OsrAfterStackCheck()->entry()); 5577 isolate->builtins()->OsrAfterStackCheck()->entry());
5574 return OSR_AFTER_STACK_CHECK; 5578 return OSR_AFTER_STACK_CHECK;
5575 } 5579 }
5576 } // namespace internal 5580 } // namespace internal
5577 } // namespace v8 5581 } // namespace v8
5578 #endif // V8_TARGET_ARCH_PPC 5582 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698