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

Side by Side Diff: src/mips64/lithium-codegen-mips64.cc

Issue 1374723002: Introduce LiteralsArray to hide it's implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix build break. Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/hydrogen-osr.h" 7 #include "src/hydrogen-osr.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 #include "src/ic/stub-cache.h" 9 #include "src/ic/stub-cache.h"
10 #include "src/mips64/lithium-codegen-mips64.h" 10 #include "src/mips64/lithium-codegen-mips64.h"
(...skipping 5581 matching lines...) Expand 10 before | Expand all | Expand 10 after
5592 5592
5593 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) { 5593 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) {
5594 DCHECK(ToRegister(instr->context()).is(cp)); 5594 DCHECK(ToRegister(instr->context()).is(cp));
5595 Label materialized; 5595 Label materialized;
5596 // Registers will be used as follows: 5596 // Registers will be used as follows:
5597 // a7 = literals array. 5597 // a7 = literals array.
5598 // a1 = regexp literal. 5598 // a1 = regexp literal.
5599 // a0 = regexp literal clone. 5599 // a0 = regexp literal clone.
5600 // a2 and a4-a6 are used as temporaries. 5600 // a2 and a4-a6 are used as temporaries.
5601 int literal_offset = 5601 int literal_offset =
5602 FixedArray::OffsetOfElementAt(instr->hydrogen()->literal_index()); 5602 LiteralsArray::OffsetOfLiteralAt(instr->hydrogen()->literal_index());
5603 __ li(a7, instr->hydrogen()->literals()); 5603 __ li(a7, instr->hydrogen()->literals());
5604 __ ld(a1, FieldMemOperand(a7, literal_offset)); 5604 __ ld(a1, FieldMemOperand(a7, literal_offset));
5605 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 5605 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
5606 __ Branch(&materialized, ne, a1, Operand(at)); 5606 __ Branch(&materialized, ne, a1, Operand(at));
5607 5607
5608 // Create regexp literal using runtime function 5608 // Create regexp literal using runtime function
5609 // Result will be in v0. 5609 // Result will be in v0.
5610 __ li(a6, Operand(Smi::FromInt(instr->hydrogen()->literal_index()))); 5610 __ li(a6, Operand(Smi::FromInt(instr->hydrogen()->literal_index())));
5611 __ li(a5, Operand(instr->hydrogen()->pattern())); 5611 __ li(a5, Operand(instr->hydrogen()->pattern()));
5612 __ li(a4, Operand(instr->hydrogen()->flags())); 5612 __ li(a4, Operand(instr->hydrogen()->flags()));
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
6085 __ Push(at, ToRegister(instr->function())); 6085 __ Push(at, ToRegister(instr->function()));
6086 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6086 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6087 RecordSafepoint(Safepoint::kNoLazyDeopt); 6087 RecordSafepoint(Safepoint::kNoLazyDeopt);
6088 } 6088 }
6089 6089
6090 6090
6091 #undef __ 6091 #undef __
6092 6092
6093 } // namespace internal 6093 } // namespace internal
6094 } // namespace v8 6094 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698