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

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

Issue 1183213002: Inline code generation for %_IsTypedArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: don't remove mips64 EmitIsArray Created 5 years, 6 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 | « no previous file | src/arm64/full-codegen-arm64.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_ARM 7 #if V8_TARGET_ARCH_ARM
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 3632 matching lines...) Expand 10 before | Expand all | Expand 10 after
3643 3643
3644 __ JumpIfSmi(r0, if_false); 3644 __ JumpIfSmi(r0, if_false);
3645 __ CompareObjectType(r0, r1, r1, JS_ARRAY_TYPE); 3645 __ CompareObjectType(r0, r1, r1, JS_ARRAY_TYPE);
3646 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3646 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3647 Split(eq, if_true, if_false, fall_through); 3647 Split(eq, if_true, if_false, fall_through);
3648 3648
3649 context()->Plug(if_true, if_false); 3649 context()->Plug(if_true, if_false);
3650 } 3650 }
3651 3651
3652 3652
3653 void FullCodeGenerator::EmitIsTypedArray(CallRuntime* expr) {
3654 ZoneList<Expression*>* args = expr->arguments();
3655 DCHECK(args->length() == 1);
3656
3657 VisitForAccumulatorValue(args->at(0));
3658
3659 Label materialize_true, materialize_false;
3660 Label* if_true = NULL;
3661 Label* if_false = NULL;
3662 Label* fall_through = NULL;
3663 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
3664 &if_false, &fall_through);
3665
3666 __ JumpIfSmi(r0, if_false);
3667 __ CompareObjectType(r0, r1, r1, JS_TYPED_ARRAY_TYPE);
3668 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3669 Split(eq, if_true, if_false, fall_through);
3670
3671 context()->Plug(if_true, if_false);
3672 }
3673
3674
3653 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { 3675 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
3654 ZoneList<Expression*>* args = expr->arguments(); 3676 ZoneList<Expression*>* args = expr->arguments();
3655 DCHECK(args->length() == 1); 3677 DCHECK(args->length() == 1);
3656 3678
3657 VisitForAccumulatorValue(args->at(0)); 3679 VisitForAccumulatorValue(args->at(0));
3658 3680
3659 Label materialize_true, materialize_false; 3681 Label materialize_true, materialize_false;
3660 Label* if_true = NULL; 3682 Label* if_true = NULL;
3661 Label* if_false = NULL; 3683 Label* if_false = NULL;
3662 Label* fall_through = NULL; 3684 Label* fall_through = NULL;
(...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after
5594 DCHECK(interrupt_address == 5616 DCHECK(interrupt_address ==
5595 isolate->builtins()->OsrAfterStackCheck()->entry()); 5617 isolate->builtins()->OsrAfterStackCheck()->entry());
5596 return OSR_AFTER_STACK_CHECK; 5618 return OSR_AFTER_STACK_CHECK;
5597 } 5619 }
5598 5620
5599 5621
5600 } // namespace internal 5622 } // namespace internal
5601 } // namespace v8 5623 } // namespace v8
5602 5624
5603 #endif // V8_TARGET_ARCH_ARM 5625 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698