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

Unified Diff: src/x64/lithium-codegen-x64.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/x64/lithium-codegen-x64.cc
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
index 81d275f7a9d60bb7dc6cc5ab3291c332cd3d33b4..f9376d28a3b290d53dc0e04b6c9f467254677800 100644
--- a/src/x64/lithium-codegen-x64.cc
+++ b/src/x64/lithium-codegen-x64.cc
@@ -5457,8 +5457,8 @@ void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) {
// rcx = literals array.
// rbx = regexp literal.
// rax = regexp literal clone.
- int literal_offset =
- FixedArray::OffsetOfElementAt(instr->hydrogen()->literal_index());
+ int literal_offset = LiteralsArray::OffsetOfElementAt(
+ instr->hydrogen()->literal_index() + LiteralsArray::kFirstLiteralIndex);
__ Move(rcx, instr->hydrogen()->literals());
__ movp(rbx, FieldOperand(rcx, literal_offset));
__ CompareRoot(rbx, Heap::kUndefinedValueRootIndex);

Powered by Google App Engine
This is Rietveld 408576698