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

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

Issue 542193003: MIPS: Rename ascii to one-byte where applicable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/mips64/assembler-mips64.h" 10 #include "src/mips64/assembler-mips64.h"
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // allocation is undone. 532 // allocation is undone.
533 void UndoAllocationInNewSpace(Register object, Register scratch); 533 void UndoAllocationInNewSpace(Register object, Register scratch);
534 534
535 535
536 void AllocateTwoByteString(Register result, 536 void AllocateTwoByteString(Register result,
537 Register length, 537 Register length,
538 Register scratch1, 538 Register scratch1,
539 Register scratch2, 539 Register scratch2,
540 Register scratch3, 540 Register scratch3,
541 Label* gc_required); 541 Label* gc_required);
542 void AllocateAsciiString(Register result, 542 void AllocateOneByteString(Register result, Register length,
543 Register length, 543 Register scratch1, Register scratch2,
544 Register scratch1, 544 Register scratch3, Label* gc_required);
545 Register scratch2,
546 Register scratch3,
547 Label* gc_required);
548 void AllocateTwoByteConsString(Register result, 545 void AllocateTwoByteConsString(Register result,
549 Register length, 546 Register length,
550 Register scratch1, 547 Register scratch1,
551 Register scratch2, 548 Register scratch2,
552 Label* gc_required); 549 Label* gc_required);
553 void AllocateAsciiConsString(Register result, 550 void AllocateOneByteConsString(Register result, Register length,
554 Register length, 551 Register scratch1, Register scratch2,
555 Register scratch1, 552 Label* gc_required);
556 Register scratch2,
557 Label* gc_required);
558 void AllocateTwoByteSlicedString(Register result, 553 void AllocateTwoByteSlicedString(Register result,
559 Register length, 554 Register length,
560 Register scratch1, 555 Register scratch1,
561 Register scratch2, 556 Register scratch2,
562 Label* gc_required); 557 Label* gc_required);
563 void AllocateAsciiSlicedString(Register result, 558 void AllocateOneByteSlicedString(Register result, Register length,
564 Register length, 559 Register scratch1, Register scratch2,
565 Register scratch1, 560 Label* gc_required);
566 Register scratch2,
567 Label* gc_required);
568 561
569 // Allocates a heap number or jumps to the gc_required label if the young 562 // Allocates a heap number or jumps to the gc_required label if the young
570 // space is full and a scavenge is needed. All registers are clobbered also 563 // space is full and a scavenge is needed. All registers are clobbered also
571 // when control continues at the gc_required label. 564 // when control continues at the gc_required label.
572 void AllocateHeapNumber(Register result, 565 void AllocateHeapNumber(Register result,
573 Register scratch1, 566 Register scratch1,
574 Register scratch2, 567 Register scratch2,
575 Register heap_number_map, 568 Register heap_number_map,
576 Label* gc_required, 569 Label* gc_required,
577 TaggingMode tagging_mode = TAG_RESULT, 570 TaggingMode tagging_mode = TAG_RESULT,
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 // with the result in the result register. The object and the result register 1536 // with the result in the result register. The object and the result register
1544 // can be the same. If the number is not found in the cache the code jumps to 1537 // can be the same. If the number is not found in the cache the code jumps to
1545 // the label not_found with only the content of register object unchanged. 1538 // the label not_found with only the content of register object unchanged.
1546 void LookupNumberStringCache(Register object, 1539 void LookupNumberStringCache(Register object,
1547 Register result, 1540 Register result,
1548 Register scratch1, 1541 Register scratch1,
1549 Register scratch2, 1542 Register scratch2,
1550 Register scratch3, 1543 Register scratch3,
1551 Label* not_found); 1544 Label* not_found);
1552 1545
1553 // Checks if both instance types are sequential ASCII strings and jumps to 1546 // Checks if both instance types are sequential one-byte strings and jumps to
1554 // label if either is not. 1547 // label if either is not.
1555 void JumpIfBothInstanceTypesAreNotSequentialAscii( 1548 void JumpIfBothInstanceTypesAreNotSequentialOneByte(
1556 Register first_object_instance_type, 1549 Register first_object_instance_type, Register second_object_instance_type,
1557 Register second_object_instance_type, 1550 Register scratch1, Register scratch2, Label* failure);
1558 Register scratch1,
1559 Register scratch2,
1560 Label* failure);
1561 1551
1562 // Check if instance type is sequential ASCII string and jump to label if 1552 // Check if instance type is sequential one-byte string and jump to label if
1563 // it is not. 1553 // it is not.
1564 void JumpIfInstanceTypeIsNotSequentialAscii(Register type, 1554 void JumpIfInstanceTypeIsNotSequentialOneByte(Register type, Register scratch,
1565 Register scratch, 1555 Label* failure);
1566 Label* failure);
1567 1556
1568 void JumpIfNotUniqueName(Register reg, Label* not_unique_name); 1557 void JumpIfNotUniqueName(Register reg, Label* not_unique_name);
1569 1558
1570 void EmitSeqStringSetCharCheck(Register string, 1559 void EmitSeqStringSetCharCheck(Register string,
1571 Register index, 1560 Register index,
1572 Register value, 1561 Register value,
1573 Register scratch, 1562 Register scratch,
1574 uint32_t encoding_mask); 1563 uint32_t encoding_mask);
1575 1564
1576 // Test that both first and second are sequential ASCII strings. 1565 // Checks if both objects are sequential one-byte strings and jumps to label
1577 // Assume that they are non-smis. 1566 // if either is not. Assumes that neither object is a smi.
1578 void JumpIfNonSmisNotBothSequentialAsciiStrings(Register first, 1567 void JumpIfNonSmisNotBothSequentialOneByteStrings(Register first,
1579 Register second, 1568 Register second,
1580 Register scratch1, 1569 Register scratch1,
1581 Register scratch2, 1570 Register scratch2,
1582 Label* failure); 1571 Label* failure);
1583 1572
1584 // Test that both first and second are sequential ASCII strings. 1573 // Checks if both objects are sequential one-byte strings and jumps to label
1585 // Check that they are non-smis. 1574 // if either is not.
1586 void JumpIfNotBothSequentialAsciiStrings(Register first, 1575 void JumpIfNotBothSequentialOneByteStrings(Register first, Register second,
1587 Register second, 1576 Register scratch1,
1588 Register scratch1, 1577 Register scratch2,
1589 Register scratch2, 1578 Label* not_flat_one_byte_strings);
1590 Label* failure);
1591 1579
1592 void ClampUint8(Register output_reg, Register input_reg); 1580 void ClampUint8(Register output_reg, Register input_reg);
1593 1581
1594 void ClampDoubleToUint8(Register result_reg, 1582 void ClampDoubleToUint8(Register result_reg,
1595 DoubleRegister input_reg, 1583 DoubleRegister input_reg,
1596 DoubleRegister temp_double_reg); 1584 DoubleRegister temp_double_reg);
1597 1585
1598 1586
1599 void LoadInstanceDescriptors(Register map, Register descriptors); 1587 void LoadInstanceDescriptors(Register map, Register descriptors);
1600 void EnumLength(Register dst, Register map); 1588 void EnumLength(Register dst, Register map);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1772 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1785 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1773 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1786 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1774 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1787 #else 1775 #else
1788 #define ACCESS_MASM(masm) masm-> 1776 #define ACCESS_MASM(masm) masm->
1789 #endif 1777 #endif
1790 1778
1791 } } // namespace v8::internal 1779 } } // namespace v8::internal
1792 1780
1793 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1781 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698