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

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

Issue 27421002: MIPS: Make TestJSArrayForAllocationMemento less awkward. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 months 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-codegen-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 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 1513
1514 // Expects object in a0 and returns map with validated enum cache 1514 // 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. 1515 // in a0. Assumes that any other register can be used as a scratch.
1516 void CheckEnumCache(Register null_value, Label* call_runtime); 1516 void CheckEnumCache(Register null_value, Label* call_runtime);
1517 1517
1518 // AllocationMemento support. Arrays may have an associated 1518 // AllocationMemento support. Arrays may have an associated
1519 // AllocationMemento object that can be checked for in order to pretransition 1519 // AllocationMemento object that can be checked for in order to pretransition
1520 // to another type. 1520 // to another type.
1521 // On entry, receiver_reg should point to the array object. 1521 // On entry, receiver_reg should point to the array object.
1522 // scratch_reg gets clobbered. 1522 // scratch_reg gets clobbered.
1523 // If allocation info is present, jump to allocation_info_present 1523 // If allocation info is present, jump to allocation_memento_present.
1524 void TestJSArrayForAllocationMemento(Register receiver_reg, 1524 void TestJSArrayForAllocationMemento(
1525 Register scratch_reg, 1525 Register receiver_reg,
1526 Condition cond, 1526 Register scratch_reg,
1527 Label* allocation_memento_present); 1527 Label* no_memento_found,
1528 Condition cond = al,
1529 Label* allocation_memento_present = NULL);
1530
1531 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg,
1532 Register scratch_reg,
1533 Label* memento_found) {
1534 Label no_memento_found;
1535 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg,
1536 &no_memento_found, eq, memento_found);
1537 bind(&no_memento_found);
1538 }
1528 1539
1529 private: 1540 private:
1530 void CallCFunctionHelper(Register function, 1541 void CallCFunctionHelper(Register function,
1531 int num_reg_arguments, 1542 int num_reg_arguments,
1532 int num_double_arguments); 1543 int num_double_arguments);
1533 1544
1534 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT); 1545 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT);
1535 void BranchShort(int16_t offset, Condition cond, Register rs, 1546 void BranchShort(int16_t offset, Condition cond, Register rs,
1536 const Operand& rt, 1547 const Operand& rt,
1537 BranchDelaySlot bdslot = PROTECT); 1548 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) 1653 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1643 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1654 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1644 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1655 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1645 #else 1656 #else
1646 #define ACCESS_MASM(masm) masm-> 1657 #define ACCESS_MASM(masm) masm->
1647 #endif 1658 #endif
1648 1659
1649 } } // namespace v8::internal 1660 } } // namespace v8::internal
1650 1661
1651 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1662 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698