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

Side by Side Diff: src/mips/full-codegen-mips.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/mips/code-stubs-mips.cc ('k') | src/mips/lithium-codegen-mips.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 5233 matching lines...) Expand 10 before | Expand all | Expand 10 after
5244 __ GetObjectType(v0, v0, a1); 5244 __ GetObjectType(v0, v0, a1);
5245 __ Branch(if_false, ge, a1, Operand(FIRST_NONSTRING_TYPE)); 5245 __ Branch(if_false, ge, a1, Operand(FIRST_NONSTRING_TYPE));
5246 __ lbu(a1, FieldMemOperand(v0, Map::kBitFieldOffset)); 5246 __ lbu(a1, FieldMemOperand(v0, Map::kBitFieldOffset));
5247 __ And(a1, a1, Operand(1 << Map::kIsUndetectable)); 5247 __ And(a1, a1, Operand(1 << Map::kIsUndetectable));
5248 Split(eq, a1, Operand(zero_reg), 5248 Split(eq, a1, Operand(zero_reg),
5249 if_true, if_false, fall_through); 5249 if_true, if_false, fall_through);
5250 } else if (String::Equals(check, factory->symbol_string())) { 5250 } else if (String::Equals(check, factory->symbol_string())) {
5251 __ JumpIfSmi(v0, if_false); 5251 __ JumpIfSmi(v0, if_false);
5252 __ GetObjectType(v0, v0, a1); 5252 __ GetObjectType(v0, v0, a1);
5253 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through); 5253 Split(eq, a1, Operand(SYMBOL_TYPE), if_true, if_false, fall_through);
5254 } else if (String::Equals(check, factory->float32x4_string())) {
5255 __ JumpIfSmi(v0, if_false);
5256 __ GetObjectType(v0, v0, a1);
5257 Split(eq, a1, Operand(FLOAT32X4_TYPE), if_true, if_false, fall_through);
5254 } else if (String::Equals(check, factory->boolean_string())) { 5258 } else if (String::Equals(check, factory->boolean_string())) {
5255 __ LoadRoot(at, Heap::kTrueValueRootIndex); 5259 __ LoadRoot(at, Heap::kTrueValueRootIndex);
5256 __ Branch(if_true, eq, v0, Operand(at)); 5260 __ Branch(if_true, eq, v0, Operand(at));
5257 __ LoadRoot(at, Heap::kFalseValueRootIndex); 5261 __ LoadRoot(at, Heap::kFalseValueRootIndex);
5258 Split(eq, v0, Operand(at), if_true, if_false, fall_through); 5262 Split(eq, v0, Operand(at), if_true, if_false, fall_through);
5259 } else if (String::Equals(check, factory->undefined_string())) { 5263 } else if (String::Equals(check, factory->undefined_string())) {
5260 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 5264 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
5261 __ Branch(if_true, eq, v0, Operand(at)); 5265 __ Branch(if_true, eq, v0, Operand(at));
5262 __ JumpIfSmi(v0, if_false); 5266 __ JumpIfSmi(v0, if_false);
5263 // Check for undetectable objects => true. 5267 // Check for undetectable objects => true.
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
5579 reinterpret_cast<uint32_t>( 5583 reinterpret_cast<uint32_t>(
5580 isolate->builtins()->OsrAfterStackCheck()->entry())); 5584 isolate->builtins()->OsrAfterStackCheck()->entry()));
5581 return OSR_AFTER_STACK_CHECK; 5585 return OSR_AFTER_STACK_CHECK;
5582 } 5586 }
5583 5587
5584 5588
5585 } // namespace internal 5589 } // namespace internal
5586 } // namespace v8 5590 } // namespace v8
5587 5591
5588 #endif // V8_TARGET_ARCH_MIPS 5592 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698