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, context, constant pool |
| 430 // (if FLAG_enable_ool_constant_pool) 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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1387 template<typename Field> | 1396 template<typename Field> |
1388 void DecodeField(Register reg) { | 1397 void DecodeField(Register reg) { |
1389 static const int shift = Field::kShift; | 1398 static const int shift = Field::kShift; |
1390 static const int mask = (Field::kMask >> shift) << kSmiTagSize; | 1399 static const int mask = (Field::kMask >> shift) << kSmiTagSize; |
1391 mov(reg, Operand(reg, LSR, shift)); | 1400 mov(reg, Operand(reg, LSR, shift)); |
1392 and_(reg, reg, Operand(mask)); | 1401 and_(reg, reg, Operand(mask)); |
1393 } | 1402 } |
1394 | 1403 |
1395 // Activation support. | 1404 // Activation support. |
1396 void EnterFrame(StackFrame::Type type); | 1405 void EnterFrame(StackFrame::Type type); |
1397 void LeaveFrame(StackFrame::Type type); | 1406 // Returns the pc offset at which the frame ends. |
| 1407 int LeaveFrame(StackFrame::Type type); |
1398 | 1408 |
1399 // Expects object in r0 and returns map with validated enum cache | 1409 // Expects object in r0 and returns map with validated enum cache |
1400 // in r0. Assumes that any other register can be used as a scratch. | 1410 // in r0. Assumes that any other register can be used as a scratch. |
1401 void CheckEnumCache(Register null_value, Label* call_runtime); | 1411 void CheckEnumCache(Register null_value, Label* call_runtime); |
1402 | 1412 |
1403 // AllocationMemento support. Arrays may have an associated | 1413 // AllocationMemento support. Arrays may have an associated |
1404 // AllocationMemento object that can be checked for in order to pretransition | 1414 // AllocationMemento object that can be checked for in order to pretransition |
1405 // to another type. | 1415 // to another type. |
1406 // On entry, receiver_reg should point to the array object. | 1416 // On entry, receiver_reg should point to the array object. |
1407 // scratch_reg gets clobbered. | 1417 // scratch_reg gets clobbered. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1539 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1549 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1540 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1550 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1541 #else | 1551 #else |
1542 #define ACCESS_MASM(masm) masm-> | 1552 #define ACCESS_MASM(masm) masm-> |
1543 #endif | 1553 #endif |
1544 | 1554 |
1545 | 1555 |
1546 } } // namespace v8::internal | 1556 } } // namespace v8::internal |
1547 | 1557 |
1548 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1558 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |