| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3241 if (::v8::internal::FLAG_trace_sim) { | 3241 if (::v8::internal::FLAG_trace_sim) { |
| 3242 disasm::NameConverter converter; | 3242 disasm::NameConverter converter; |
| 3243 disasm::Disassembler dasm(converter); | 3243 disasm::Disassembler dasm(converter); |
| 3244 // use a reasonably large buffer | 3244 // use a reasonably large buffer |
| 3245 v8::internal::EmbeddedVector<char, 256> buffer; | 3245 v8::internal::EmbeddedVector<char, 256> buffer; |
| 3246 dasm.InstructionDecode(buffer, | 3246 dasm.InstructionDecode(buffer, |
| 3247 reinterpret_cast<byte*>(instr)); | 3247 reinterpret_cast<byte*>(instr)); |
| 3248 PrintF(" 0x%08x %s\n", reinterpret_cast<intptr_t>(instr), buffer.start()); | 3248 PrintF(" 0x%08x %s\n", reinterpret_cast<intptr_t>(instr), buffer.start()); |
| 3249 } | 3249 } |
| 3250 if (instr->ConditionField() == kSpecialCondition) { | 3250 if (instr->ConditionField() == kSpecialCondition) { |
| 3251 UNIMPLEMENTED(); | 3251 if (!instr->IsPld()) { |
| 3252 UNIMPLEMENTED(); |
| 3253 } |
| 3252 } else if (ConditionallyExecute(instr)) { | 3254 } else if (ConditionallyExecute(instr)) { |
| 3253 switch (instr->TypeValue()) { | 3255 switch (instr->TypeValue()) { |
| 3254 case 0: | 3256 case 0: |
| 3255 case 1: { | 3257 case 1: { |
| 3256 DecodeType01(instr); | 3258 DecodeType01(instr); |
| 3257 break; | 3259 break; |
| 3258 } | 3260 } |
| 3259 case 2: { | 3261 case 2: { |
| 3260 DecodeType2(instr); | 3262 DecodeType2(instr); |
| 3261 break; | 3263 break; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3460 uintptr_t address = *stack_slot; | 3462 uintptr_t address = *stack_slot; |
| 3461 set_register(sp, current_sp + sizeof(uintptr_t)); | 3463 set_register(sp, current_sp + sizeof(uintptr_t)); |
| 3462 return address; | 3464 return address; |
| 3463 } | 3465 } |
| 3464 | 3466 |
| 3465 } } // namespace v8::internal | 3467 } } // namespace v8::internal |
| 3466 | 3468 |
| 3467 #endif // USE_SIMULATOR | 3469 #endif // USE_SIMULATOR |
| 3468 | 3470 |
| 3469 #endif // V8_TARGET_ARCH_ARM | 3471 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |