| 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2280 } | 2280 } |
| 2281 | 2281 |
| 2282 | 2282 |
| 2283 void LCodeGen::DoCmpMapAndBranch(LCmpMapAndBranch* instr) { | 2283 void LCodeGen::DoCmpMapAndBranch(LCmpMapAndBranch* instr) { |
| 2284 Register reg = ToRegister(instr->value()); | 2284 Register reg = ToRegister(instr->value()); |
| 2285 __ cmp(FieldOperand(reg, HeapObject::kMapOffset), instr->map()); | 2285 __ cmp(FieldOperand(reg, HeapObject::kMapOffset), instr->map()); |
| 2286 EmitBranch(instr, equal); | 2286 EmitBranch(instr, equal); |
| 2287 } | 2287 } |
| 2288 | 2288 |
| 2289 | 2289 |
| 2290 void LCodeGen::DoInstanceOf(LInstanceOf* instr) { | |
| 2291 DCHECK(ToRegister(instr->context()).is(esi)); | |
| 2292 DCHECK(ToRegister(instr->left()).is(InstanceOfDescriptor::LeftRegister())); | |
| 2293 DCHECK(ToRegister(instr->right()).is(InstanceOfDescriptor::RightRegister())); | |
| 2294 DCHECK(ToRegister(instr->result()).is(eax)); | |
| 2295 InstanceOfStub stub(isolate()); | |
| 2296 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | |
| 2297 } | |
| 2298 | |
| 2299 | |
| 2300 void LCodeGen::DoHasInPrototypeChainAndBranch( | 2290 void LCodeGen::DoHasInPrototypeChainAndBranch( |
| 2301 LHasInPrototypeChainAndBranch* instr) { | 2291 LHasInPrototypeChainAndBranch* instr) { |
| 2302 Register const object = ToRegister(instr->object()); | 2292 Register const object = ToRegister(instr->object()); |
| 2303 Register const object_map = ToRegister(instr->scratch()); | 2293 Register const object_map = ToRegister(instr->scratch()); |
| 2304 Register const object_prototype = object_map; | 2294 Register const object_prototype = object_map; |
| 2305 Register const prototype = ToRegister(instr->prototype()); | 2295 Register const prototype = ToRegister(instr->prototype()); |
| 2306 | 2296 |
| 2307 // The {object} must be a spec object. It's sufficient to know that {object} | 2297 // The {object} must be a spec object. It's sufficient to know that {object} |
| 2308 // is not a smi, since all other non-spec objects have {null} prototypes and | 2298 // is not a smi, since all other non-spec objects have {null} prototypes and |
| 2309 // will be ruled out below. | 2299 // will be ruled out below. |
| (...skipping 3018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5328 __ bind(deferred->exit()); | 5318 __ bind(deferred->exit()); |
| 5329 __ bind(&done); | 5319 __ bind(&done); |
| 5330 } | 5320 } |
| 5331 | 5321 |
| 5332 #undef __ | 5322 #undef __ |
| 5333 | 5323 |
| 5334 } // namespace internal | 5324 } // namespace internal |
| 5335 } // namespace v8 | 5325 } // namespace v8 |
| 5336 | 5326 |
| 5337 #endif // V8_TARGET_ARCH_IA32 | 5327 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |