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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.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
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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 3420 matching lines...) Expand 10 before | Expand all | Expand 10 after
3431 3431
3432 __ JumpIfSmi(v0, if_false); 3432 __ JumpIfSmi(v0, if_false);
3433 __ GetObjectType(v0, a1, a1); 3433 __ GetObjectType(v0, a1, a1);
3434 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3434 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3435 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through); 3435 Split(eq, a1, Operand(SIMD128_VALUE_TYPE), if_true, if_false, fall_through);
3436 3436
3437 context()->Plug(if_true, if_false); 3437 context()->Plug(if_true, if_false);
3438 } 3438 }
3439 3439
3440 3440
3441 void FullCodeGenerator::EmitIsUndetectableObject(CallRuntime* expr) {
3442 ZoneList<Expression*>* args = expr->arguments();
3443 DCHECK(args->length() == 1);
3444
3445 VisitForAccumulatorValue(args->at(0));
3446
3447 Label materialize_true, materialize_false;
3448 Label* if_true = NULL;
3449 Label* if_false = NULL;
3450 Label* fall_through = NULL;
3451 context()->PrepareTest(&materialize_true, &materialize_false,
3452 &if_true, &if_false, &fall_through);
3453
3454 __ JumpIfSmi(v0, if_false);
3455 __ lw(a1, FieldMemOperand(v0, HeapObject::kMapOffset));
3456 __ lbu(a1, FieldMemOperand(a1, Map::kBitFieldOffset));
3457 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3458 __ And(at, a1, Operand(1 << Map::kIsUndetectable));
3459 Split(ne, at, Operand(zero_reg), if_true, if_false, fall_through);
3460
3461 context()->Plug(if_true, if_false);
3462 }
3463
3464
3465 void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( 3441 void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf(
3466 CallRuntime* expr) { 3442 CallRuntime* expr) {
3467 ZoneList<Expression*>* args = expr->arguments(); 3443 ZoneList<Expression*>* args = expr->arguments();
3468 DCHECK(args->length() == 1); 3444 DCHECK(args->length() == 1);
3469 3445
3470 VisitForAccumulatorValue(args->at(0)); 3446 VisitForAccumulatorValue(args->at(0));
3471 3447
3472 Label materialize_true, materialize_false, skip_lookup; 3448 Label materialize_true, materialize_false, skip_lookup;
3473 Label* if_true = NULL; 3449 Label* if_true = NULL;
3474 Label* if_false = NULL; 3450 Label* if_false = NULL;
(...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
5400 reinterpret_cast<uint32_t>( 5376 reinterpret_cast<uint32_t>(
5401 isolate->builtins()->OsrAfterStackCheck()->entry())); 5377 isolate->builtins()->OsrAfterStackCheck()->entry()));
5402 return OSR_AFTER_STACK_CHECK; 5378 return OSR_AFTER_STACK_CHECK;
5403 } 5379 }
5404 5380
5405 5381
5406 } // namespace internal 5382 } // namespace internal
5407 } // namespace v8 5383 } // namespace v8
5408 5384
5409 #endif // V8_TARGET_ARCH_MIPS 5385 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698