| 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 2914 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2925     static const int kExpectedAbortInstructions = 10; | 2925     static const int kExpectedAbortInstructions = 10; | 
| 2926     int abort_instructions = InstructionsGeneratedSince(&abort_start); | 2926     int abort_instructions = InstructionsGeneratedSince(&abort_start); | 
| 2927     ASSERT(abort_instructions <= kExpectedAbortInstructions); | 2927     ASSERT(abort_instructions <= kExpectedAbortInstructions); | 
| 2928     while (abort_instructions++ < kExpectedAbortInstructions) { | 2928     while (abort_instructions++ < kExpectedAbortInstructions) { | 
| 2929       nop(); | 2929       nop(); | 
| 2930     } | 2930     } | 
| 2931   } | 2931   } | 
| 2932 } | 2932 } | 
| 2933 | 2933 | 
| 2934 | 2934 | 
|  | 2935 void MacroAssembler::ReloadContextFromFrame() { | 
|  | 2936   ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 
|  | 2937 } | 
|  | 2938 | 
|  | 2939 | 
| 2935 void MacroAssembler::LoadContext(Register dst, int context_chain_length) { | 2940 void MacroAssembler::LoadContext(Register dst, int context_chain_length) { | 
| 2936   if (context_chain_length > 0) { | 2941   if (context_chain_length > 0) { | 
| 2937     // Move up the chain of contexts to the context containing the slot. | 2942     // Move up the chain of contexts to the context containing the slot. | 
| 2938     ldr(dst, MemOperand(cp, Context::SlotOffset(Context::PREVIOUS_INDEX))); | 2943     ldr(dst, MemOperand(cp, Context::SlotOffset(Context::PREVIOUS_INDEX))); | 
| 2939     for (int i = 1; i < context_chain_length; i++) { | 2944     for (int i = 1; i < context_chain_length; i++) { | 
| 2940       ldr(dst, MemOperand(dst, Context::SlotOffset(Context::PREVIOUS_INDEX))); | 2945       ldr(dst, MemOperand(dst, Context::SlotOffset(Context::PREVIOUS_INDEX))); | 
| 2941     } | 2946     } | 
| 2942   } else { | 2947   } else { | 
| 2943     // Slot is in the current function context.  Move it into the | 2948     // Slot is in the current function context.  Move it into the | 
| 2944     // destination register in case we store into it (the write barrier | 2949     // destination register in case we store into it (the write barrier | 
| (...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3949 void CodePatcher::EmitCondition(Condition cond) { | 3954 void CodePatcher::EmitCondition(Condition cond) { | 
| 3950   Instr instr = Assembler::instr_at(masm_.pc_); | 3955   Instr instr = Assembler::instr_at(masm_.pc_); | 
| 3951   instr = (instr & ~kCondMask) | cond; | 3956   instr = (instr & ~kCondMask) | cond; | 
| 3952   masm_.emit(instr); | 3957   masm_.emit(instr); | 
| 3953 } | 3958 } | 
| 3954 | 3959 | 
| 3955 | 3960 | 
| 3956 } }  // namespace v8::internal | 3961 } }  // namespace v8::internal | 
| 3957 | 3962 | 
| 3958 #endif  // V8_TARGET_ARCH_ARM | 3963 #endif  // V8_TARGET_ARCH_ARM | 
| OLD | NEW | 
|---|