| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 } | 518 } |
| 519 } | 519 } |
| 520 | 520 |
| 521 | 521 |
| 522 void MacroAssembler::JumpIfSmiGreaterEqualsConstant(Register src, | 522 void MacroAssembler::JumpIfSmiGreaterEqualsConstant(Register src, |
| 523 int constant, | 523 int constant, |
| 524 Label* on_greater_equals) { | 524 Label* on_greater_equals) { |
| 525 if (Smi::IsValid(constant)) { | 525 if (Smi::IsValid(constant)) { |
| 526 Condition are_greater_equal = CheckSmiGreaterEqualsConstant(src, constant); | 526 Condition are_greater_equal = CheckSmiGreaterEqualsConstant(src, constant); |
| 527 j(are_greater_equal, on_greater_equals); | 527 j(are_greater_equal, on_greater_equals); |
| 528 } else if (constant < Smi::kMinValue){ | 528 } else if (constant < Smi::kMinValue) { |
| 529 jmp(on_greater_equals); | 529 jmp(on_greater_equals); |
| 530 } | 530 } |
| 531 } | 531 } |
| 532 | 532 |
| 533 | 533 |
| 534 void MacroAssembler::JumpIfNotValidSmiValue(Register src, Label* on_invalid) { | 534 void MacroAssembler::JumpIfNotValidSmiValue(Register src, Label* on_invalid) { |
| 535 Condition is_valid = CheckInteger32ValidSmiValue(src); | 535 Condition is_valid = CheckInteger32ValidSmiValue(src); |
| 536 j(ReverseCondition(is_valid), on_invalid); | 536 j(ReverseCondition(is_valid), on_invalid); |
| 537 } | 537 } |
| 538 | 538 |
| (...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2170 // Indicate that code has changed. | 2170 // Indicate that code has changed. |
| 2171 CPU::FlushICache(address_, size_); | 2171 CPU::FlushICache(address_, size_); |
| 2172 | 2172 |
| 2173 // Check that the code was patched as expected. | 2173 // Check that the code was patched as expected. |
| 2174 ASSERT(masm_.pc_ == address_ + size_); | 2174 ASSERT(masm_.pc_ == address_ + size_); |
| 2175 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 2175 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
| 2176 } | 2176 } |
| 2177 | 2177 |
| 2178 | 2178 |
| 2179 } } // namespace v8::internal | 2179 } } // namespace v8::internal |
| OLD | NEW |