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

Unified Diff: src/ppc/macro-assembler-ppc.cc

Issue 1475823003: [runtime] First step to sanitize regexp literal creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/ppc/macro-assembler-ppc.cc
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc
index cef6336487d356f444ba98428f03903e54726f24..86a517d708709f26e6d55560a99e8657d2a3c077 100644
--- a/src/ppc/macro-assembler-ppc.cc
+++ b/src/ppc/macro-assembler-ppc.cc
@@ -2754,32 +2754,6 @@ void MacroAssembler::AllocateHeapNumberWithValue(
}
-// Copies a fixed number of fields of heap objects from src to dst.
-void MacroAssembler::CopyFields(Register dst, Register src, RegList temps,
- int field_count) {
- // At least one bit set in the first 15 registers.
- DCHECK((temps & ((1 << 15) - 1)) != 0);
- DCHECK((temps & dst.bit()) == 0);
- DCHECK((temps & src.bit()) == 0);
- // Primitive implementation using only one temporary register.
-
- Register tmp = no_reg;
- // Find a temp register in temps list.
- for (int i = 0; i < 15; i++) {
- if ((temps & (1 << i)) != 0) {
- tmp.set_code(i);
- break;
- }
- }
- DCHECK(!tmp.is(no_reg));
-
- for (int i = 0; i < field_count; i++) {
- LoadP(tmp, FieldMemOperand(src, i * kPointerSize), r0);
- StoreP(tmp, FieldMemOperand(dst, i * kPointerSize), r0);
- }
-}
-
-
void MacroAssembler::CopyBytes(Register src, Register dst, Register length,
Register scratch) {
Label align_loop, aligned, word_loop, byte_loop, byte_loop_1, done;

Powered by Google App Engine
This is Rietveld 408576698