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

Unified Diff: src/arm/lithium-codegen-arm.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
« no previous file with comments | « no previous file | src/arm64/lithium-codegen-arm64.cc » ('j') | src/arm64/lithium-codegen-arm64.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/lithium-codegen-arm.cc
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
index b163061458ec1376cfd4623c957df2138a0df90c..3c22ae3a6df17ce17107dbcf8179cfd51f7bc7dd 100644
--- a/src/arm/lithium-codegen-arm.cc
+++ b/src/arm/lithium-codegen-arm.cc
@@ -5397,8 +5397,8 @@ void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) {
// r1 = regexp literal.
// r0 = regexp literal clone.
// r2-5 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 Shouldn't " + LiteralsArray::kFirstLiteralIndex" b
mvstanton 2015/09/28 16:01:33 I'd like all places that talk about a literal inde
__ Move(r6, instr->hydrogen()->literals());
__ ldr(r1, FieldMemOperand(r6, literal_offset));
__ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
« no previous file with comments | « no previous file | src/arm64/lithium-codegen-arm64.cc » ('j') | src/arm64/lithium-codegen-arm64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698