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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { | 281 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { |
282 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), | 282 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), |
283 static_cast<int8_t>(type)); | 283 static_cast<int8_t>(type)); |
284 } | 284 } |
285 | 285 |
286 | 286 |
287 void MacroAssembler::CheckFastElements(Register map, | 287 void MacroAssembler::CheckFastElements(Register map, |
288 Label* fail, | 288 Label* fail, |
289 Label::Distance distance) { | 289 Label::Distance distance) { |
290 STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0); | 290 STATIC_ASSERT(FAST_ELEMENTS == 0); |
291 cmpb(FieldOperand(map, Map::kBitField2Offset), | 291 cmpb(FieldOperand(map, Map::kBitField2Offset), |
292 Map::kMaximumBitField2FastElementValue); | 292 Map::kMaximumBitField2FastElementValue); |
293 j(above, fail, distance); | 293 j(above, fail, distance); |
294 } | 294 } |
295 | 295 |
296 | 296 |
297 void MacroAssembler::CheckMap(Register obj, | 297 void MacroAssembler::CheckMap(Register obj, |
298 Handle<Map> map, | 298 Handle<Map> map, |
299 Label* fail, | 299 Label* fail, |
300 SmiCheckType smi_check_type) { | 300 SmiCheckType smi_check_type) { |
(...skipping 1983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2284 | 2284 |
2285 // Check that the code was patched as expected. | 2285 // Check that the code was patched as expected. |
2286 ASSERT(masm_.pc_ == address_ + size_); | 2286 ASSERT(masm_.pc_ == address_ + size_); |
2287 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 2287 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
2288 } | 2288 } |
2289 | 2289 |
2290 | 2290 |
2291 } } // namespace v8::internal | 2291 } } // namespace v8::internal |
2292 | 2292 |
2293 #endif // V8_TARGET_ARCH_IA32 | 2293 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |