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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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 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_IA32 7 #if V8_TARGET_ARCH_IA32
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 4995 matching lines...) Expand 10 before | Expand all | Expand 10 after
5006 1 << Map::kIsUndetectable); 5006 1 << Map::kIsUndetectable);
5007 Split(zero, if_true, if_false, fall_through); 5007 Split(zero, if_true, if_false, fall_through);
5008 } else if (String::Equals(check, factory->symbol_string())) { 5008 } else if (String::Equals(check, factory->symbol_string())) {
5009 __ JumpIfSmi(eax, if_false); 5009 __ JumpIfSmi(eax, if_false);
5010 __ CmpObjectType(eax, SYMBOL_TYPE, edx); 5010 __ CmpObjectType(eax, SYMBOL_TYPE, edx);
5011 Split(equal, if_true, if_false, fall_through); 5011 Split(equal, if_true, if_false, fall_through);
5012 } else if (String::Equals(check, factory->float32x4_string())) { 5012 } else if (String::Equals(check, factory->float32x4_string())) {
5013 __ JumpIfSmi(eax, if_false); 5013 __ JumpIfSmi(eax, if_false);
5014 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx); 5014 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx);
5015 Split(equal, if_true, if_false, fall_through); 5015 Split(equal, if_true, if_false, fall_through);
5016 } else if (String::Equals(check, factory->int32x4_string())) {
5017 __ JumpIfSmi(eax, if_false);
5018 __ CmpObjectType(eax, INT32X4_TYPE, edx);
5019 Split(equal, if_true, if_false, fall_through);
5020 } else if (String::Equals(check, factory->bool32x4_string())) {
5021 __ JumpIfSmi(eax, if_false);
5022 __ CmpObjectType(eax, BOOL32X4_TYPE, edx);
5023 Split(equal, if_true, if_false, fall_through);
5024 } else if (String::Equals(check, factory->int16x8_string())) {
5025 __ JumpIfSmi(eax, if_false);
5026 __ CmpObjectType(eax, INT16X8_TYPE, edx);
5027 Split(equal, if_true, if_false, fall_through);
5028 } else if (String::Equals(check, factory->bool16x8_string())) {
5029 __ JumpIfSmi(eax, if_false);
5030 __ CmpObjectType(eax, BOOL16X8_TYPE, edx);
5031 Split(equal, if_true, if_false, fall_through);
5032 } else if (String::Equals(check, factory->int8x16_string())) {
5033 __ JumpIfSmi(eax, if_false);
5034 __ CmpObjectType(eax, INT8X16_TYPE, edx);
5035 Split(equal, if_true, if_false, fall_through);
5036 } else if (String::Equals(check, factory->bool8x16_string())) {
5037 __ JumpIfSmi(eax, if_false);
5038 __ CmpObjectType(eax, BOOL8X16_TYPE, edx);
5039 Split(equal, if_true, if_false, fall_through);
5016 } else if (String::Equals(check, factory->boolean_string())) { 5040 } else if (String::Equals(check, factory->boolean_string())) {
5017 __ cmp(eax, isolate()->factory()->true_value()); 5041 __ cmp(eax, isolate()->factory()->true_value());
5018 __ j(equal, if_true); 5042 __ j(equal, if_true);
5019 __ cmp(eax, isolate()->factory()->false_value()); 5043 __ cmp(eax, isolate()->factory()->false_value());
5020 Split(equal, if_true, if_false, fall_through); 5044 Split(equal, if_true, if_false, fall_through);
5021 } else if (String::Equals(check, factory->undefined_string())) { 5045 } else if (String::Equals(check, factory->undefined_string())) {
5022 __ cmp(eax, isolate()->factory()->undefined_value()); 5046 __ cmp(eax, isolate()->factory()->undefined_value());
5023 __ j(equal, if_true); 5047 __ j(equal, if_true);
5024 __ JumpIfSmi(eax, if_false); 5048 __ JumpIfSmi(eax, if_false);
5025 // Check for undetectable objects => true. 5049 // Check for undetectable objects => true.
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
5341 Assembler::target_address_at(call_target_address, 5365 Assembler::target_address_at(call_target_address,
5342 unoptimized_code)); 5366 unoptimized_code));
5343 return OSR_AFTER_STACK_CHECK; 5367 return OSR_AFTER_STACK_CHECK;
5344 } 5368 }
5345 5369
5346 5370
5347 } // namespace internal 5371 } // namespace internal
5348 } // namespace v8 5372 } // namespace v8
5349 5373
5350 #endif // V8_TARGET_ARCH_IA32 5374 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698