OLD | NEW |
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_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 3430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3441 | 3441 |
3442 __ JumpIfSmi(r0, if_false); | 3442 __ JumpIfSmi(r0, if_false); |
3443 __ CompareObjectType(r0, r1, r1, SIMD128_VALUE_TYPE); | 3443 __ CompareObjectType(r0, r1, r1, SIMD128_VALUE_TYPE); |
3444 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3444 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3445 Split(eq, if_true, if_false, fall_through); | 3445 Split(eq, if_true, if_false, fall_through); |
3446 | 3446 |
3447 context()->Plug(if_true, if_false); | 3447 context()->Plug(if_true, if_false); |
3448 } | 3448 } |
3449 | 3449 |
3450 | 3450 |
3451 void FullCodeGenerator::EmitIsUndetectableObject(CallRuntime* expr) { | |
3452 ZoneList<Expression*>* args = expr->arguments(); | |
3453 DCHECK(args->length() == 1); | |
3454 | |
3455 VisitForAccumulatorValue(args->at(0)); | |
3456 | |
3457 Label materialize_true, materialize_false; | |
3458 Label* if_true = NULL; | |
3459 Label* if_false = NULL; | |
3460 Label* fall_through = NULL; | |
3461 context()->PrepareTest(&materialize_true, &materialize_false, | |
3462 &if_true, &if_false, &fall_through); | |
3463 | |
3464 __ JumpIfSmi(r0, if_false); | |
3465 __ ldr(r1, FieldMemOperand(r0, HeapObject::kMapOffset)); | |
3466 __ ldrb(r1, FieldMemOperand(r1, Map::kBitFieldOffset)); | |
3467 __ tst(r1, Operand(1 << Map::kIsUndetectable)); | |
3468 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | |
3469 Split(ne, if_true, if_false, fall_through); | |
3470 | |
3471 context()->Plug(if_true, if_false); | |
3472 } | |
3473 | |
3474 | |
3475 void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( | 3451 void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( |
3476 CallRuntime* expr) { | 3452 CallRuntime* expr) { |
3477 ZoneList<Expression*>* args = expr->arguments(); | 3453 ZoneList<Expression*>* args = expr->arguments(); |
3478 DCHECK(args->length() == 1); | 3454 DCHECK(args->length() == 1); |
3479 | 3455 |
3480 VisitForAccumulatorValue(args->at(0)); | 3456 VisitForAccumulatorValue(args->at(0)); |
3481 | 3457 |
3482 Label materialize_true, materialize_false, skip_lookup; | 3458 Label materialize_true, materialize_false, skip_lookup; |
3483 Label* if_true = NULL; | 3459 Label* if_true = NULL; |
3484 Label* if_false = NULL; | 3460 Label* if_false = NULL; |
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5438 DCHECK(interrupt_address == | 5414 DCHECK(interrupt_address == |
5439 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5415 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5440 return OSR_AFTER_STACK_CHECK; | 5416 return OSR_AFTER_STACK_CHECK; |
5441 } | 5417 } |
5442 | 5418 |
5443 | 5419 |
5444 } // namespace internal | 5420 } // namespace internal |
5445 } // namespace v8 | 5421 } // namespace v8 |
5446 | 5422 |
5447 #endif // V8_TARGET_ARCH_ARM | 5423 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |