Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1962 | 1962 |
| 1963 push(eax); | 1963 push(eax); |
| 1964 push(Immediate(p0)); | 1964 push(Immediate(p0)); |
| 1965 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(p1 - p0)))); | 1965 push(Immediate(reinterpret_cast<intptr_t>(Smi::FromInt(p1 - p0)))); |
| 1966 CallRuntime(Runtime::kAbort, 2); | 1966 CallRuntime(Runtime::kAbort, 2); |
| 1967 // will not return here | 1967 // will not return here |
| 1968 int3(); | 1968 int3(); |
| 1969 } | 1969 } |
| 1970 | 1970 |
| 1971 | 1971 |
| 1972 void MacroAssembler::LoadInstanceDescriptors(Register map, | |
| 1973 Register descriptors) { | |
| 1974 mov(descriptors, | |
| 1975 FieldOperand(map, Map::kInstanceDescriptorsOrBitField3Offset)); | |
| 1976 Label not_smi; | |
| 1977 JumpIfNotSmi(descriptors, ¬_smi); | |
|
Mads Ager (chromium)
2011/05/23 10:14:51
Does this accept a Label::kNear argument. This sho
danno
2011/06/01 13:15:11
There is no Label::xxx parameter supported on the
| |
| 1978 mov(descriptors, isolate()->factory()->empty_descriptor_array()); | |
| 1979 bind(¬_smi); | |
| 1980 } | |
| 1981 | |
| 1982 | |
| 1972 void MacroAssembler::LoadPowerOf2(XMMRegister dst, | 1983 void MacroAssembler::LoadPowerOf2(XMMRegister dst, |
| 1973 Register scratch, | 1984 Register scratch, |
| 1974 int power) { | 1985 int power) { |
| 1975 ASSERT(is_uintn(power + HeapNumber::kExponentBias, | 1986 ASSERT(is_uintn(power + HeapNumber::kExponentBias, |
| 1976 HeapNumber::kExponentBits)); | 1987 HeapNumber::kExponentBits)); |
| 1977 mov(scratch, Immediate(power + HeapNumber::kExponentBias)); | 1988 mov(scratch, Immediate(power + HeapNumber::kExponentBias)); |
| 1978 movd(dst, Operand(scratch)); | 1989 movd(dst, Operand(scratch)); |
| 1979 psllq(dst, HeapNumber::kMantissaBits); | 1990 psllq(dst, HeapNumber::kMantissaBits); |
| 1980 } | 1991 } |
| 1981 | 1992 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2083 | 2094 |
| 2084 // Check that the code was patched as expected. | 2095 // Check that the code was patched as expected. |
| 2085 ASSERT(masm_.pc_ == address_ + size_); | 2096 ASSERT(masm_.pc_ == address_ + size_); |
| 2086 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 2097 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
| 2087 } | 2098 } |
| 2088 | 2099 |
| 2089 | 2100 |
| 2090 } } // namespace v8::internal | 2101 } } // namespace v8::internal |
| 2091 | 2102 |
| 2092 #endif // V8_TARGET_ARCH_IA32 | 2103 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |