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

Side by Side Diff: src/a64/regexp-macro-assembler-a64.cc

Issue 143493006: A64: Eliminate static initializers (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: updates Created 6 years, 10 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/a64/macro-assembler-a64.h ('k') | test/cctest/test-utils-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 void RegExpMacroAssemblerA64::Pop(Register target) { 1551 void RegExpMacroAssemblerA64::Pop(Register target) {
1552 ASSERT(target.Is32Bits()); 1552 ASSERT(target.Is32Bits());
1553 ASSERT(!target.is(backtrack_stackpointer())); 1553 ASSERT(!target.is(backtrack_stackpointer()));
1554 __ Ldr(target, 1554 __ Ldr(target,
1555 MemOperand(backtrack_stackpointer(), kWRegSizeInBytes, PostIndex)); 1555 MemOperand(backtrack_stackpointer(), kWRegSizeInBytes, PostIndex));
1556 } 1556 }
1557 1557
1558 1558
1559 Register RegExpMacroAssemblerA64::GetCachedRegister(int register_index) { 1559 Register RegExpMacroAssemblerA64::GetCachedRegister(int register_index) {
1560 ASSERT(register_index < kNumCachedRegisters); 1560 ASSERT(register_index < kNumCachedRegisters);
1561 return Register(register_index / 2, kXRegSize); 1561 return Register::Create(register_index / 2, kXRegSize);
1562 } 1562 }
1563 1563
1564 1564
1565 Register RegExpMacroAssemblerA64::GetRegister(int register_index, 1565 Register RegExpMacroAssemblerA64::GetRegister(int register_index,
1566 Register maybe_result) { 1566 Register maybe_result) {
1567 ASSERT(maybe_result.Is32Bits()); 1567 ASSERT(maybe_result.Is32Bits());
1568 ASSERT(register_index >= 0); 1568 ASSERT(register_index >= 0);
1569 if (num_registers_ <= register_index) { 1569 if (num_registers_ <= register_index) {
1570 num_registers_ = register_index + 1; 1570 num_registers_ = register_index + 1;
1571 } 1571 }
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); 1721 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW));
1722 } 1722 }
1723 } 1723 }
1724 } 1724 }
1725 1725
1726 #endif // V8_INTERPRETED_REGEXP 1726 #endif // V8_INTERPRETED_REGEXP
1727 1727
1728 }} // namespace v8::internal 1728 }} // namespace v8::internal
1729 1729
1730 #endif // V8_TARGET_ARCH_A64 1730 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/macro-assembler-a64.h ('k') | test/cctest/test-utils-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698