Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 39973003: Merge bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: again Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 void NumberOfOwnDescriptors(Register dst, Register map); 1491 void NumberOfOwnDescriptors(Register dst, Register map);
1492 1492
1493 template<typename Field> 1493 template<typename Field>
1494 void DecodeField(Register reg) { 1494 void DecodeField(Register reg) {
1495 static const int shift = Field::kShift; 1495 static const int shift = Field::kShift;
1496 static const int mask = (Field::kMask >> shift) << kSmiTagSize; 1496 static const int mask = (Field::kMask >> shift) << kSmiTagSize;
1497 srl(reg, reg, shift); 1497 srl(reg, reg, shift);
1498 And(reg, reg, Operand(mask)); 1498 And(reg, reg, Operand(mask));
1499 } 1499 }
1500 1500
1501 // Generates function and stub prologue code.
1502 void Prologue(PrologueFrameMode frame_mode);
1503
1501 // Activation support. 1504 // Activation support.
1502 void EnterFrame(StackFrame::Type type); 1505 void EnterFrame(StackFrame::Type type);
1503 void LeaveFrame(StackFrame::Type type); 1506 void LeaveFrame(StackFrame::Type type);
1504 1507
1505 // Patch the relocated value (lui/ori pair). 1508 // Patch the relocated value (lui/ori pair).
1506 void PatchRelocatedValue(Register li_location, 1509 void PatchRelocatedValue(Register li_location,
1507 Register scratch, 1510 Register scratch,
1508 Register new_value); 1511 Register new_value);
1509 // Get the relocatad value (loaded data) from the lui/ori pair. 1512 // Get the relocatad value (loaded data) from the lui/ori pair.
1510 void GetRelocatedValue(Register li_location, 1513 void GetRelocatedValue(Register li_location,
1511 Register value, 1514 Register value,
1512 Register scratch); 1515 Register scratch);
1513 1516
1514 // Expects object in a0 and returns map with validated enum cache 1517 // Expects object in a0 and returns map with validated enum cache
1515 // in a0. Assumes that any other register can be used as a scratch. 1518 // in a0. Assumes that any other register can be used as a scratch.
1516 void CheckEnumCache(Register null_value, Label* call_runtime); 1519 void CheckEnumCache(Register null_value, Label* call_runtime);
1517 1520
1518 // AllocationMemento support. Arrays may have an associated 1521 // AllocationMemento support. Arrays may have an associated
1519 // AllocationMemento object that can be checked for in order to pretransition 1522 // AllocationMemento object that can be checked for in order to pretransition
1520 // to another type. 1523 // to another type.
1521 // On entry, receiver_reg should point to the array object. 1524 // On entry, receiver_reg should point to the array object.
1522 // scratch_reg gets clobbered. 1525 // scratch_reg gets clobbered.
1523 // If allocation info is present, jump to allocation_info_present 1526 // If allocation info is present, jump to allocation_memento_present.
1524 void TestJSArrayForAllocationMemento(Register receiver_reg, 1527 void TestJSArrayForAllocationMemento(
1525 Register scratch_reg, 1528 Register receiver_reg,
1526 Condition cond, 1529 Register scratch_reg,
1527 Label* allocation_memento_present); 1530 Label* no_memento_found,
1531 Condition cond = al,
1532 Label* allocation_memento_present = NULL);
1533
1534 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg,
1535 Register scratch_reg,
1536 Label* memento_found) {
1537 Label no_memento_found;
1538 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg,
1539 &no_memento_found, eq, memento_found);
1540 bind(&no_memento_found);
1541 }
1528 1542
1529 private: 1543 private:
1530 void CallCFunctionHelper(Register function, 1544 void CallCFunctionHelper(Register function,
1531 int num_reg_arguments, 1545 int num_reg_arguments,
1532 int num_double_arguments); 1546 int num_double_arguments);
1533 1547
1534 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT); 1548 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT);
1535 void BranchShort(int16_t offset, Condition cond, Register rs, 1549 void BranchShort(int16_t offset, Condition cond, Register rs,
1536 const Operand& rt, 1550 const Operand& rt,
1537 BranchDelaySlot bdslot = PROTECT); 1551 BranchDelaySlot bdslot = PROTECT);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1656 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1643 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1657 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1644 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1658 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1645 #else 1659 #else
1646 #define ACCESS_MASM(masm) masm-> 1660 #define ACCESS_MASM(masm) masm->
1647 #endif 1661 #endif
1648 1662
1649 } } // namespace v8::internal 1663 } } // namespace v8::internal
1650 1664
1651 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1665 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698