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

Unified Diff: src/arm64/lithium-codegen-arm64.cc

Issue 1374723002: Introduce LiteralsArray to hide it's implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports done. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/arm64/lithium-codegen-arm64.cc
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc
index 11e99b03c9903cf8d8bcd6acb3e985fe61487af0..151d49dca8341737876e5cb287616cb9781f6282 100644
--- a/src/arm64/lithium-codegen-arm64.cc
+++ b/src/arm64/lithium-codegen-arm64.cc
@@ -5647,8 +5647,8 @@ void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) {
// x1 = regexp literal.
// x0 = regexp literal clone.
// x10-x12 are used as temporaries.
- int literal_offset =
- FixedArray::OffsetOfElementAt(instr->hydrogen()->literal_index());
+ int literal_offset = LiteralsArray::OffsetOfElementAt(
+ instr->hydrogen()->literal_index() + LiteralsArray::kFirstLiteralIndex);
Igor Sheludko 2015/09/28 15:16:45 Same here.
__ LoadObject(x7, instr->hydrogen()->literals());
__ Ldr(x1, FieldMemOperand(x7, literal_offset));
__ JumpIfNotRoot(x1, Heap::kUndefinedValueRootIndex, &materialized);

Powered by Google App Engine
This is Rietveld 408576698