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

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

Issue 90643003: Experimental implementation: Exposing SIMD instructions into JavaScript Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4518 matching lines...) Expand 10 before | Expand all | Expand 10 after
4529 { AccumulatorValueContext context(this); 4529 { AccumulatorValueContext context(this);
4530 VisitForTypeofValue(sub_expr); 4530 VisitForTypeofValue(sub_expr);
4531 } 4531 }
4532 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 4532 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
4533 4533
4534 if (check->Equals(isolate()->heap()->number_string())) { 4534 if (check->Equals(isolate()->heap()->number_string())) {
4535 __ JumpIfSmi(eax, if_true); 4535 __ JumpIfSmi(eax, if_true);
4536 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), 4536 __ cmp(FieldOperand(eax, HeapObject::kMapOffset),
4537 isolate()->factory()->heap_number_map()); 4537 isolate()->factory()->heap_number_map());
4538 Split(equal, if_true, if_false, fall_through); 4538 Split(equal, if_true, if_false, fall_through);
4539 } else if (check->Equals(isolate()->heap()->float32x4_string())) {
4540 __ JumpIfSmi(eax, if_false);
4541 __ CmpObjectType(eax, FLOAT32x4_TYPE, edx);
4542 Split(equal, if_true, if_false, fall_through);
4543 } else if (check->Equals(isolate()->heap()->int32x4_string())) {
4544 __ JumpIfSmi(eax, if_false);
4545 __ CmpObjectType(eax, INT32x4_TYPE, edx);
4546 Split(equal, if_true, if_false, fall_through);
4539 } else if (check->Equals(isolate()->heap()->string_string())) { 4547 } else if (check->Equals(isolate()->heap()->string_string())) {
4540 __ JumpIfSmi(eax, if_false); 4548 __ JumpIfSmi(eax, if_false);
4541 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); 4549 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx);
4542 __ j(above_equal, if_false); 4550 __ j(above_equal, if_false);
4543 // Check for undetectable objects => false. 4551 // Check for undetectable objects => false.
4544 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), 4552 __ test_b(FieldOperand(edx, Map::kBitFieldOffset),
4545 1 << Map::kIsUndetectable); 4553 1 << Map::kIsUndetectable);
4546 Split(zero, if_true, if_false, fall_through); 4554 Split(zero, if_true, if_false, fall_through);
4547 } else if (check->Equals(isolate()->heap()->symbol_string())) { 4555 } else if (check->Equals(isolate()->heap()->symbol_string())) {
4548 __ JumpIfSmi(eax, if_false); 4556 __ JumpIfSmi(eax, if_false);
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
4908 4916
4909 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4917 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4910 Assembler::target_address_at(call_target_address)); 4918 Assembler::target_address_at(call_target_address));
4911 return OSR_AFTER_STACK_CHECK; 4919 return OSR_AFTER_STACK_CHECK;
4912 } 4920 }
4913 4921
4914 4922
4915 } } // namespace v8::internal 4923 } } // namespace v8::internal
4916 4924
4917 #endif // V8_TARGET_ARCH_IA32 4925 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698