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

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

Issue 2692933002: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: Created 3 years, 10 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/full-codegen/x64/full-codegen-x64.cc ('k') | src/heap-symbols.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 // 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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after
2525 __ JumpIfSmi(eax, if_false); 2525 __ JumpIfSmi(eax, if_false);
2526 __ cmp(eax, isolate()->factory()->null_value()); 2526 __ cmp(eax, isolate()->factory()->null_value());
2527 __ j(equal, if_true); 2527 __ j(equal, if_true);
2528 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); 2528 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE);
2529 __ CmpObjectType(eax, FIRST_JS_RECEIVER_TYPE, edx); 2529 __ CmpObjectType(eax, FIRST_JS_RECEIVER_TYPE, edx);
2530 __ j(below, if_false); 2530 __ j(below, if_false);
2531 // Check for callable or undetectable objects => false. 2531 // Check for callable or undetectable objects => false.
2532 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), 2532 __ test_b(FieldOperand(edx, Map::kBitFieldOffset),
2533 Immediate((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable))); 2533 Immediate((1 << Map::kIsCallable) | (1 << Map::kIsUndetectable)));
2534 Split(zero, if_true, if_false, fall_through); 2534 Split(zero, if_true, if_false, fall_through);
2535 // clang-format off
2536 #define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \
2537 } else if (String::Equals(check, factory->type##_string())) { \
2538 __ JumpIfSmi(eax, if_false); \
2539 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), \
2540 isolate()->factory()->type##_map()); \
2541 Split(equal, if_true, if_false, fall_through);
2542 SIMD128_TYPES(SIMD128_TYPE)
2543 #undef SIMD128_TYPE
2544 // clang-format on
2535 } else { 2545 } else {
2536 if (if_false != fall_through) __ jmp(if_false); 2546 if (if_false != fall_through) __ jmp(if_false);
2537 } 2547 }
2538 context()->Plug(if_true, if_false); 2548 context()->Plug(if_true, if_false);
2539 } 2549 }
2540 2550
2541 2551
2542 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { 2552 void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
2543 Comment cmnt(masm_, "[ CompareOperation"); 2553 Comment cmnt(masm_, "[ CompareOperation");
2544 2554
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
2759 isolate->builtins()->OnStackReplacement()->entry(), 2769 isolate->builtins()->OnStackReplacement()->entry(),
2760 Assembler::target_address_at(call_target_address, unoptimized_code)); 2770 Assembler::target_address_at(call_target_address, unoptimized_code));
2761 return ON_STACK_REPLACEMENT; 2771 return ON_STACK_REPLACEMENT;
2762 } 2772 }
2763 2773
2764 2774
2765 } // namespace internal 2775 } // namespace internal
2766 } // namespace v8 2776 } // namespace v8
2767 2777
2768 #endif // V8_TARGET_ARCH_X87 2778 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/heap-symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698