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

Side by Side Diff: src/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/compiler/js-intrinsic-lowering.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 3332 matching lines...) Expand 10 before | Expand all | Expand 10 after
3343 3343
3344 __ JumpIfSmi(x0, if_false); 3344 __ JumpIfSmi(x0, if_false);
3345 __ CompareObjectType(x0, x10, x11, JS_ARRAY_TYPE); 3345 __ CompareObjectType(x0, x10, x11, JS_ARRAY_TYPE);
3346 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3346 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3347 Split(eq, if_true, if_false, fall_through); 3347 Split(eq, if_true, if_false, fall_through);
3348 3348
3349 context()->Plug(if_true, if_false); 3349 context()->Plug(if_true, if_false);
3350 } 3350 }
3351 3351
3352 3352
3353 void FullCodeGenerator::EmitIsTypedArray(CallRuntime* expr) {
3354 ZoneList<Expression*>* args = expr->arguments();
3355 DCHECK(args->length() == 1);
3356
3357 VisitForAccumulatorValue(args->at(0));
3358
3359 Label materialize_true, materialize_false;
3360 Label* if_true = NULL;
3361 Label* if_false = NULL;
3362 Label* fall_through = NULL;
3363 context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
3364 &if_false, &fall_through);
3365
3366 __ JumpIfSmi(x0, if_false);
3367 __ CompareObjectType(x0, x10, x11, JS_TYPED_ARRAY_TYPE);
3368 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3369 Split(eq, if_true, if_false, fall_through);
3370
3371 context()->Plug(if_true, if_false);
3372 }
3373
3374
3353 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) { 3375 void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
3354 ZoneList<Expression*>* args = expr->arguments(); 3376 ZoneList<Expression*>* args = expr->arguments();
3355 DCHECK(args->length() == 1); 3377 DCHECK(args->length() == 1);
3356 3378
3357 VisitForAccumulatorValue(args->at(0)); 3379 VisitForAccumulatorValue(args->at(0));
3358 3380
3359 Label materialize_true, materialize_false; 3381 Label materialize_true, materialize_false;
3360 Label* if_true = NULL; 3382 Label* if_true = NULL;
3361 Label* if_false = NULL; 3383 Label* if_false = NULL;
3362 Label* fall_through = NULL; 3384 Label* fall_through = NULL;
(...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after
5563 } 5585 }
5564 5586
5565 return INTERRUPT; 5587 return INTERRUPT;
5566 } 5588 }
5567 5589
5568 5590
5569 } // namespace internal 5591 } // namespace internal
5570 } // namespace v8 5592 } // namespace v8
5571 5593
5572 #endif // V8_TARGET_ARCH_ARM64 5594 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/compiler/js-intrinsic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698