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

Unified Diff: src/arm/macro-assembler-arm.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/arm/macro-assembler-arm.cc
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc
index 2565328abef594157cc4ee6d5a8420cca5775676..b87d0e7b79f15ecab99c4739cb3030d86470ca00 100644
--- a/src/arm/macro-assembler-arm.cc
+++ b/src/arm/macro-assembler-arm.cc
@@ -2929,30 +2929,6 @@ void MacroAssembler::AllocateHeapNumberWithValue(Register result,
}
-// Copies a fixed number of fields of heap objects from src to dst.
-void MacroAssembler::CopyFields(Register dst,
- Register src,
- LowDwVfpRegister double_scratch,
- int field_count) {
- int double_count = field_count / (DwVfpRegister::kSizeInBytes / kPointerSize);
- for (int i = 0; i < double_count; i++) {
- vldr(double_scratch, FieldMemOperand(src, i * DwVfpRegister::kSizeInBytes));
- vstr(double_scratch, FieldMemOperand(dst, i * DwVfpRegister::kSizeInBytes));
- }
-
- STATIC_ASSERT(SwVfpRegister::kSizeInBytes == kPointerSize);
- STATIC_ASSERT(2 * SwVfpRegister::kSizeInBytes == DwVfpRegister::kSizeInBytes);
-
- int remain = field_count % (DwVfpRegister::kSizeInBytes / kPointerSize);
- if (remain != 0) {
- vldr(double_scratch.low(),
- FieldMemOperand(src, (field_count - 1) * kPointerSize));
- vstr(double_scratch.low(),
- FieldMemOperand(dst, (field_count - 1) * kPointerSize));
- }
-}
-
-
void MacroAssembler::CopyBytes(Register src,
Register dst,
Register length,

Powered by Google App Engine
This is Rietveld 408576698