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

Side by Side Diff: src/mips64/full-codegen-mips64.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 | « src/mips/full-codegen-mips.cc ('k') | src/ppc/full-codegen-ppc.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 3612 matching lines...) Expand 10 before | Expand all | Expand 10 after
3623 __ JumpIfSmi(v0, if_false); 3623 __ JumpIfSmi(v0, if_false);
3624 __ GetObjectType(v0, a1, a1); 3624 __ GetObjectType(v0, a1, a1);
3625 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3625 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3626 Split(eq, a1, Operand(JS_ARRAY_TYPE), 3626 Split(eq, a1, Operand(JS_ARRAY_TYPE),
3627 if_true, if_false, fall_through); 3627 if_true, if_false, fall_through);
3628 3628
3629 context()->Plug(if_true, if_false); 3629 context()->Plug(if_true, if_false);
3630 } 3630 }
3631 3631
3632 3632
3633 void FullCodeGenerator::EmitIsTypedArray(CallRuntime* expr) {
3634 ZoneList<Expression*>* args = expr->arguments();
3635 DCHECK(args->length() == 1);
3636
3637 VisitForAccumulatorValue(args->at(0));
3638
3639 Label materialize_true, materialize_false;
3640 Label* if_true = NULL;
3641 Label* if_false = NULL;
3642 Label* fall_through = NULL;
3643 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
3644 &if_false, &fall_through);
3645
3646 __ JumpIfSmi(v0, if_false);
3647 __ GetObjectType(v0, a1, a1);
3648 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3649 Split(eq, a1, Operand(JS_TYPED_ARRAY_TYPE), if_true, if_false, fall_through);
3650
3651 context()->Plug(if_true, if_false);
3652 }
3653
3654
3633 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { 3655 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
3634 ZoneList<Expression*>* args = expr->arguments(); 3656 ZoneList<Expression*>* args = expr->arguments();
3635 DCHECK(args->length() == 1); 3657 DCHECK(args->length() == 1);
3636 3658
3637 VisitForAccumulatorValue(args->at(0)); 3659 VisitForAccumulatorValue(args->at(0));
3638 3660
3639 Label materialize_true, materialize_false; 3661 Label materialize_true, materialize_false;
3640 Label* if_true = NULL; 3662 Label* if_true = NULL;
3641 Label* if_false = NULL; 3663 Label* if_false = NULL;
3642 Label* fall_through = NULL; 3664 Label* fall_through = NULL;
(...skipping 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after
5545 reinterpret_cast<uint64_t>( 5567 reinterpret_cast<uint64_t>(
5546 isolate->builtins()->OsrAfterStackCheck()->entry())); 5568 isolate->builtins()->OsrAfterStackCheck()->entry()));
5547 return OSR_AFTER_STACK_CHECK; 5569 return OSR_AFTER_STACK_CHECK;
5548 } 5570 }
5549 5571
5550 5572
5551 } // namespace internal 5573 } // namespace internal
5552 } // namespace v8 5574 } // namespace v8
5553 5575
5554 #endif // V8_TARGET_ARCH_MIPS64 5576 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698