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

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

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 5084 matching lines...) Expand 10 before | Expand all | Expand 10 after
5095 __ andi(r0, r4, Operand(1 << Map::kIsUndetectable)); 5095 __ andi(r0, r4, Operand(1 << Map::kIsUndetectable));
5096 Split(eq, if_true, if_false, fall_through, cr0); 5096 Split(eq, if_true, if_false, fall_through, cr0);
5097 } else if (String::Equals(check, factory->symbol_string())) { 5097 } else if (String::Equals(check, factory->symbol_string())) {
5098 __ JumpIfSmi(r3, if_false); 5098 __ JumpIfSmi(r3, if_false);
5099 __ CompareObjectType(r3, r3, r4, SYMBOL_TYPE); 5099 __ CompareObjectType(r3, r3, r4, SYMBOL_TYPE);
5100 Split(eq, if_true, if_false, fall_through); 5100 Split(eq, if_true, if_false, fall_through);
5101 } else if (String::Equals(check, factory->float32x4_string())) { 5101 } else if (String::Equals(check, factory->float32x4_string())) {
5102 __ JumpIfSmi(r3, if_false); 5102 __ JumpIfSmi(r3, if_false);
5103 __ CompareObjectType(r3, r3, r4, FLOAT32X4_TYPE); 5103 __ CompareObjectType(r3, r3, r4, FLOAT32X4_TYPE);
5104 Split(eq, if_true, if_false, fall_through); 5104 Split(eq, if_true, if_false, fall_through);
5105 } else if (String::Equals(check, factory->int32x4_string())) {
5106 __ JumpIfSmi(r3, if_false);
5107 __ CompareObjectType(r3, r3, r4, INT32X4_TYPE);
5108 Split(eq, if_true, if_false, fall_through);
5109 } else if (String::Equals(check, factory->bool32x4_string())) {
5110 __ JumpIfSmi(r3, if_false);
5111 __ CompareObjectType(r3, r3, r4, BOOL32X4_TYPE);
5112 Split(eq, if_true, if_false, fall_through);
5113 } else if (String::Equals(check, factory->int16x8_string())) {
5114 __ JumpIfSmi(r3, if_false);
5115 __ CompareObjectType(r3, r3, r4, INT16X8_TYPE);
5116 Split(eq, if_true, if_false, fall_through);
5117 } else if (String::Equals(check, factory->bool16x8_string())) {
5118 __ JumpIfSmi(r3, if_false);
5119 __ CompareObjectType(r3, r3, r4, BOOL16X8_TYPE);
5120 Split(eq, if_true, if_false, fall_through);
5121 } else if (String::Equals(check, factory->int8x16_string())) {
5122 __ JumpIfSmi(r3, if_false);
5123 __ CompareObjectType(r3, r3, r4, INT8X16_TYPE);
5124 Split(eq, if_true, if_false, fall_through);
5125 } else if (String::Equals(check, factory->bool8x16_string())) {
5126 __ JumpIfSmi(r3, if_false);
5127 __ CompareObjectType(r3, r3, r4, BOOL8X16_TYPE);
5128 Split(eq, if_true, if_false, fall_through);
5105 } else if (String::Equals(check, factory->boolean_string())) { 5129 } else if (String::Equals(check, factory->boolean_string())) {
5106 __ CompareRoot(r3, Heap::kTrueValueRootIndex); 5130 __ CompareRoot(r3, Heap::kTrueValueRootIndex);
5107 __ beq(if_true); 5131 __ beq(if_true);
5108 __ CompareRoot(r3, Heap::kFalseValueRootIndex); 5132 __ CompareRoot(r3, Heap::kFalseValueRootIndex);
5109 Split(eq, if_true, if_false, fall_through); 5133 Split(eq, if_true, if_false, fall_through);
5110 } else if (String::Equals(check, factory->undefined_string())) { 5134 } else if (String::Equals(check, factory->undefined_string())) {
5111 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex); 5135 __ CompareRoot(r3, Heap::kUndefinedValueRootIndex);
5112 __ beq(if_true); 5136 __ beq(if_true);
5113 __ JumpIfSmi(r3, if_false); 5137 __ JumpIfSmi(r3, if_false);
5114 // Check for undetectable objects => true. 5138 // Check for undetectable objects => true.
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
5423 return ON_STACK_REPLACEMENT; 5447 return ON_STACK_REPLACEMENT;
5424 } 5448 }
5425 5449
5426 DCHECK(interrupt_address == 5450 DCHECK(interrupt_address ==
5427 isolate->builtins()->OsrAfterStackCheck()->entry()); 5451 isolate->builtins()->OsrAfterStackCheck()->entry());
5428 return OSR_AFTER_STACK_CHECK; 5452 return OSR_AFTER_STACK_CHECK;
5429 } 5453 }
5430 } // namespace internal 5454 } // namespace internal
5431 } // namespace v8 5455 } // namespace v8
5432 #endif // V8_TARGET_ARCH_PPC 5456 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698