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

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

Issue 1288623003: [runtime] Remove useless %_IsUndetectableObject intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/mips/full-codegen-mips.cc ('k') | src/full-codegen/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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 3421 matching lines...) Expand 10 before | Expand all | Expand 10 after
3432 3432
3433 __ JumpIfSmi(v0, if_false); 3433 __ JumpIfSmi(v0, if_false);
3434 __ GetObjectType(v0, a1, a1); 3434 __ GetObjectType(v0, a1, a1);
3435 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3435 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3436 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through); 3436 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through);
3437 3437
3438 context()->Plug(if_true, if_false); 3438 context()->Plug(if_true, if_false);
3439 } 3439 }
3440 3440
3441 3441
3442 void FullCodeGenerator::EmitIsUndetectableObject(CallRuntime* expr) {
3443 ZoneList<Expression*>* args = expr->arguments();
3444 DCHECK(args->length() == 1);
3445
3446 VisitForAccumulatorValue(args->at(0));
3447
3448 Label materialize_true, materialize_false;
3449 Label* if_true = NULL;
3450 Label* if_false = NULL;
3451 Label* fall_through = NULL;
3452 context()->PrepareTest(&materialize_true, &materialize_false,
3453 &if_true, &if_false, &fall_through);
3454
3455 __ JumpIfSmi(v0, if_false);
3456 __ ld(a1, FieldMemOperand(v0, HeapObject::kMapOffset));
3457 __ lbu(a1, FieldMemOperand(a1, Map::kBitFieldOffset));
3458 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3459 __ And(at, a1, Operand(1 << Map::kIsUndetectable));
3460 Split(ne, at, Operand(zero_reg), if_true, if_false, fall_through);
3461
3462 context()->Plug(if_true, if_false);
3463 }
3464
3465
3466 void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( 3442 void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf(
3467 CallRuntime* expr) { 3443 CallRuntime* expr) {
3468 ZoneList<Expression*>* args = expr->arguments(); 3444 ZoneList<Expression*>* args = expr->arguments();
3469 DCHECK(args->length() == 1); 3445 DCHECK(args->length() == 1);
3470 3446
3471 VisitForAccumulatorValue(args->at(0)); 3447 VisitForAccumulatorValue(args->at(0));
3472 3448
3473 Label materialize_true, materialize_false, skip_lookup; 3449 Label materialize_true, materialize_false, skip_lookup;
3474 Label* if_true = NULL; 3450 Label* if_true = NULL;
3475 Label* if_false = NULL; 3451 Label* if_false = NULL;
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after
5406 reinterpret_cast<uint64_t>( 5382 reinterpret_cast<uint64_t>(
5407 isolate->builtins()->OsrAfterStackCheck()->entry())); 5383 isolate->builtins()->OsrAfterStackCheck()->entry()));
5408 return OSR_AFTER_STACK_CHECK; 5384 return OSR_AFTER_STACK_CHECK;
5409 } 5385 }
5410 5386
5411 5387
5412 } // namespace internal 5388 } // namespace internal
5413 } // namespace v8 5389 } // namespace v8
5414 5390
5415 #endif // V8_TARGET_ARCH_MIPS64 5391 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698