OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 } | 312 } |
313 | 313 |
314 | 314 |
315 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { | 315 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { |
316 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), | 316 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), |
317 static_cast<int8_t>(type)); | 317 static_cast<int8_t>(type)); |
318 } | 318 } |
319 | 319 |
320 | 320 |
321 void MacroAssembler::FCmp() { | 321 void MacroAssembler::FCmp() { |
322 fcompp(); | 322 fucompp(); |
323 push(eax); | 323 push(eax); |
324 fnstsw_ax(); | 324 fnstsw_ax(); |
325 sahf(); | 325 sahf(); |
326 pop(eax); | 326 pop(eax); |
327 } | 327 } |
328 | 328 |
329 | 329 |
330 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 330 void MacroAssembler::EnterFrame(StackFrame::Type type) { |
331 push(ebp); | 331 push(ebp); |
332 mov(ebp, Operand(esp)); | 332 mov(ebp, Operand(esp)); |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1183 // Indicate that code has changed. | 1183 // Indicate that code has changed. |
1184 CPU::FlushICache(address_, size_); | 1184 CPU::FlushICache(address_, size_); |
1185 | 1185 |
1186 // Check that the code was patched as expected. | 1186 // Check that the code was patched as expected. |
1187 ASSERT(masm_.pc_ == address_ + size_); | 1187 ASSERT(masm_.pc_ == address_ + size_); |
1188 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 1188 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
1189 } | 1189 } |
1190 | 1190 |
1191 | 1191 |
1192 } } // namespace v8::internal | 1192 } } // namespace v8::internal |
OLD | NEW |