| 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/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
| 9 #include "src/base/utils/random-number-generator.h" | 9 #include "src/base/utils/random-number-generator.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1560 mov(result, FieldOperand(map, Map::kConstructorOrBackPointerOffset)); | 1560 mov(result, FieldOperand(map, Map::kConstructorOrBackPointerOffset)); |
| 1561 bind(&loop); | 1561 bind(&loop); |
| 1562 JumpIfSmi(result, &done, Label::kNear); | 1562 JumpIfSmi(result, &done, Label::kNear); |
| 1563 CmpObjectType(result, MAP_TYPE, temp); | 1563 CmpObjectType(result, MAP_TYPE, temp); |
| 1564 j(not_equal, &done, Label::kNear); | 1564 j(not_equal, &done, Label::kNear); |
| 1565 mov(result, FieldOperand(result, Map::kConstructorOrBackPointerOffset)); | 1565 mov(result, FieldOperand(result, Map::kConstructorOrBackPointerOffset)); |
| 1566 jmp(&loop); | 1566 jmp(&loop); |
| 1567 bind(&done); | 1567 bind(&done); |
| 1568 } | 1568 } |
| 1569 | 1569 |
| 1570 void MacroAssembler::CallStub(CodeStub* stub, TypeFeedbackId ast_id) { | 1570 void MacroAssembler::CallStub(CodeStub* stub) { |
| 1571 DCHECK(AllowThisStubCall(stub)); // Calls are not allowed in some stubs. | 1571 DCHECK(AllowThisStubCall(stub)); // Calls are not allowed in some stubs. |
| 1572 call(stub->GetCode(), RelocInfo::CODE_TARGET, ast_id); | 1572 call(stub->GetCode(), RelocInfo::CODE_TARGET); |
| 1573 } | 1573 } |
| 1574 | 1574 |
| 1575 | 1575 |
| 1576 void MacroAssembler::TailCallStub(CodeStub* stub) { | 1576 void MacroAssembler::TailCallStub(CodeStub* stub) { |
| 1577 jmp(stub->GetCode(), RelocInfo::CODE_TARGET); | 1577 jmp(stub->GetCode(), RelocInfo::CODE_TARGET); |
| 1578 } | 1578 } |
| 1579 | 1579 |
| 1580 | 1580 |
| 1581 | 1581 |
| 1582 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { | 1582 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2801 mov(eax, dividend); | 2801 mov(eax, dividend); |
| 2802 shr(eax, 31); | 2802 shr(eax, 31); |
| 2803 add(edx, eax); | 2803 add(edx, eax); |
| 2804 } | 2804 } |
| 2805 | 2805 |
| 2806 | 2806 |
| 2807 } // namespace internal | 2807 } // namespace internal |
| 2808 } // namespace v8 | 2808 } // namespace v8 |
| 2809 | 2809 |
| 2810 #endif // V8_TARGET_ARCH_IA32 | 2810 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |