| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/crankshaft/x87/lithium-codegen-x87.h" | 7 #include "src/crankshaft/x87/lithium-codegen-x87.h" |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2596 | 2596 |
| 2597 // Deoptimize if the object needs to be access checked. | 2597 // Deoptimize if the object needs to be access checked. |
| 2598 __ test_b(FieldOperand(object_map, Map::kBitFieldOffset), | 2598 __ test_b(FieldOperand(object_map, Map::kBitFieldOffset), |
| 2599 Immediate(1 << Map::kIsAccessCheckNeeded)); | 2599 Immediate(1 << Map::kIsAccessCheckNeeded)); |
| 2600 DeoptimizeIf(not_zero, instr, Deoptimizer::kAccessCheck); | 2600 DeoptimizeIf(not_zero, instr, Deoptimizer::kAccessCheck); |
| 2601 // Deoptimize for proxies. | 2601 // Deoptimize for proxies. |
| 2602 __ CmpInstanceType(object_map, JS_PROXY_TYPE); | 2602 __ CmpInstanceType(object_map, JS_PROXY_TYPE); |
| 2603 DeoptimizeIf(equal, instr, Deoptimizer::kProxy); | 2603 DeoptimizeIf(equal, instr, Deoptimizer::kProxy); |
| 2604 | 2604 |
| 2605 __ mov(object_prototype, FieldOperand(object_map, Map::kPrototypeOffset)); | 2605 __ mov(object_prototype, FieldOperand(object_map, Map::kPrototypeOffset)); |
| 2606 __ cmp(object_prototype, factory()->null_value()); |
| 2607 EmitFalseBranch(instr, equal); |
| 2606 __ cmp(object_prototype, prototype); | 2608 __ cmp(object_prototype, prototype); |
| 2607 EmitTrueBranch(instr, equal); | 2609 EmitTrueBranch(instr, equal); |
| 2608 __ cmp(object_prototype, factory()->null_value()); | |
| 2609 EmitFalseBranch(instr, equal); | |
| 2610 __ mov(object_map, FieldOperand(object_prototype, HeapObject::kMapOffset)); | 2610 __ mov(object_map, FieldOperand(object_prototype, HeapObject::kMapOffset)); |
| 2611 __ jmp(&loop); | 2611 __ jmp(&loop); |
| 2612 } | 2612 } |
| 2613 | 2613 |
| 2614 | 2614 |
| 2615 void LCodeGen::DoCmpT(LCmpT* instr) { | 2615 void LCodeGen::DoCmpT(LCmpT* instr) { |
| 2616 Token::Value op = instr->op(); | 2616 Token::Value op = instr->op(); |
| 2617 | 2617 |
| 2618 Handle<Code> ic = CodeFactory::CompareIC(isolate(), op).code(); | 2618 Handle<Code> ic = CodeFactory::CompareIC(isolate(), op).code(); |
| 2619 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2619 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| (...skipping 3247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5867 __ bind(deferred->exit()); | 5867 __ bind(deferred->exit()); |
| 5868 __ bind(&done); | 5868 __ bind(&done); |
| 5869 } | 5869 } |
| 5870 | 5870 |
| 5871 #undef __ | 5871 #undef __ |
| 5872 | 5872 |
| 5873 } // namespace internal | 5873 } // namespace internal |
| 5874 } // namespace v8 | 5874 } // namespace v8 |
| 5875 | 5875 |
| 5876 #endif // V8_TARGET_ARCH_X87 | 5876 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |