| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } else { | 419 } else { |
| 420 Pop(src3, src4, cond); | 420 Pop(src3, src4, cond); |
| 421 ldm(ia_w, sp, src1.bit() | src2.bit(), cond); | 421 ldm(ia_w, sp, src1.bit() | src2.bit(), cond); |
| 422 } | 422 } |
| 423 } else { | 423 } else { |
| 424 Pop(src2, src3, src4, cond); | 424 Pop(src2, src3, src4, cond); |
| 425 ldr(src1, MemOperand(sp, 4, PostIndex), cond); | 425 ldr(src1, MemOperand(sp, 4, PostIndex), cond); |
| 426 } | 426 } |
| 427 } | 427 } |
| 428 | 428 |
| 429 // Push a fixed frame, consisting of lr, fp, constant pool (if |
| 430 // FLAG_enable_ool_constant_pool), context and JS function / marker id if |
| 431 // marker_reg is a valid register. |
| 432 void PushFixedFrame(Register marker_reg = no_reg); |
| 433 void PopFixedFrame(Register marker_reg = no_reg); |
| 434 |
| 429 // Push and pop the registers that can hold pointers, as defined by the | 435 // Push and pop the registers that can hold pointers, as defined by the |
| 430 // RegList constant kSafepointSavedRegisters. | 436 // RegList constant kSafepointSavedRegisters. |
| 431 void PushSafepointRegisters(); | 437 void PushSafepointRegisters(); |
| 432 void PopSafepointRegisters(); | 438 void PopSafepointRegisters(); |
| 433 void PushSafepointRegistersAndDoubles(); | 439 void PushSafepointRegistersAndDoubles(); |
| 434 void PopSafepointRegistersAndDoubles(); | 440 void PopSafepointRegistersAndDoubles(); |
| 435 // Store value in register src in the safepoint stack slot for | 441 // Store value in register src in the safepoint stack slot for |
| 436 // register dst. | 442 // register dst. |
| 437 void StoreToSafepointRegisterSlot(Register src, Register dst); | 443 void StoreToSafepointRegisterSlot(Register src, Register dst); |
| 438 void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst); | 444 void StoreToSafepointRegistersAndDoublesSlot(Register src, Register dst); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 Register dst, | 533 Register dst, |
| 528 Register heap_number_map, | 534 Register heap_number_map, |
| 529 Register scratch, | 535 Register scratch, |
| 530 DwVfpRegister double_scratch0, | 536 DwVfpRegister double_scratch0, |
| 531 LowDwVfpRegister double_scratch1, | 537 LowDwVfpRegister double_scratch1, |
| 532 Label* not_int32); | 538 Label* not_int32); |
| 533 | 539 |
| 534 // Generates function and stub prologue code. | 540 // Generates function and stub prologue code. |
| 535 void Prologue(PrologueFrameMode frame_mode); | 541 void Prologue(PrologueFrameMode frame_mode); |
| 536 | 542 |
| 543 // Loads the constant pool pointer (pp) register. |
| 544 void LoadConstantPoolPointerRegister(); |
| 545 |
| 537 // Enter exit frame. | 546 // Enter exit frame. |
| 538 // stack_space - extra stack space, used for alignment before call to C. | 547 // stack_space - extra stack space, used for alignment before call to C. |
| 539 void EnterExitFrame(bool save_doubles, int stack_space = 0); | 548 void EnterExitFrame(bool save_doubles, int stack_space = 0); |
| 540 | 549 |
| 541 // Leave the current exit frame. Expects the return value in r0. | 550 // Leave the current exit frame. Expects the return value in r0. |
| 542 // Expect the number of values, pushed prior to the exit frame, to | 551 // Expect the number of values, pushed prior to the exit frame, to |
| 543 // remove in a register (or no_reg, if there is nothing to remove). | 552 // remove in a register (or no_reg, if there is nothing to remove). |
| 544 void LeaveExitFrame(bool save_doubles, | 553 void LeaveExitFrame(bool save_doubles, |
| 545 Register argument_count, | 554 Register argument_count, |
| 546 bool restore_context); | 555 bool restore_context); |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1392 template<typename Field> | 1401 template<typename Field> |
| 1393 void DecodeField(Register reg) { | 1402 void DecodeField(Register reg) { |
| 1394 static const int shift = Field::kShift; | 1403 static const int shift = Field::kShift; |
| 1395 static const int mask = (Field::kMask >> shift) << kSmiTagSize; | 1404 static const int mask = (Field::kMask >> shift) << kSmiTagSize; |
| 1396 mov(reg, Operand(reg, LSR, shift)); | 1405 mov(reg, Operand(reg, LSR, shift)); |
| 1397 and_(reg, reg, Operand(mask)); | 1406 and_(reg, reg, Operand(mask)); |
| 1398 } | 1407 } |
| 1399 | 1408 |
| 1400 // Activation support. | 1409 // Activation support. |
| 1401 void EnterFrame(StackFrame::Type type); | 1410 void EnterFrame(StackFrame::Type type); |
| 1402 void LeaveFrame(StackFrame::Type type); | 1411 // Returns the pc offset at which the frame ends. |
| 1412 int LeaveFrame(StackFrame::Type type); |
| 1403 | 1413 |
| 1404 // Expects object in r0 and returns map with validated enum cache | 1414 // Expects object in r0 and returns map with validated enum cache |
| 1405 // in r0. Assumes that any other register can be used as a scratch. | 1415 // in r0. Assumes that any other register can be used as a scratch. |
| 1406 void CheckEnumCache(Register null_value, Label* call_runtime); | 1416 void CheckEnumCache(Register null_value, Label* call_runtime); |
| 1407 | 1417 |
| 1408 // AllocationMemento support. Arrays may have an associated | 1418 // AllocationMemento support. Arrays may have an associated |
| 1409 // AllocationMemento object that can be checked for in order to pretransition | 1419 // AllocationMemento object that can be checked for in order to pretransition |
| 1410 // to another type. | 1420 // to another type. |
| 1411 // On entry, receiver_reg should point to the array object. | 1421 // On entry, receiver_reg should point to the array object. |
| 1412 // scratch_reg gets clobbered. | 1422 // scratch_reg gets clobbered. |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1543 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1553 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1544 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1554 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1545 #else | 1555 #else |
| 1546 #define ACCESS_MASM(masm) masm-> | 1556 #define ACCESS_MASM(masm) masm-> |
| 1547 #endif | 1557 #endif |
| 1548 | 1558 |
| 1549 | 1559 |
| 1550 } } // namespace v8::internal | 1560 } } // namespace v8::internal |
| 1551 | 1561 |
| 1552 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1562 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |