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

Side by Side Diff: src/full-codegen/mips64/full-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/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 Label materialized; 1488 Label materialized;
1489 // Registers will be used as follows: 1489 // Registers will be used as follows:
1490 // a5 = materialized value (RegExp literal) 1490 // a5 = materialized value (RegExp literal)
1491 // a4 = JS function, literals array 1491 // a4 = JS function, literals array
1492 // a3 = literal index 1492 // a3 = literal index
1493 // a2 = RegExp pattern 1493 // a2 = RegExp pattern
1494 // a1 = RegExp flags 1494 // a1 = RegExp flags
1495 // a0 = RegExp literal clone 1495 // a0 = RegExp literal clone
1496 __ ld(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1496 __ ld(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1497 __ ld(a4, FieldMemOperand(a0, JSFunction::kLiteralsOffset)); 1497 __ ld(a4, FieldMemOperand(a0, JSFunction::kLiteralsOffset));
1498 int literal_offset = 1498 int literal_offset = LiteralsArray::OffsetOfLiteralAt(expr->literal_index());
1499 FixedArray::kHeaderSize + expr->literal_index() * kPointerSize;
1500 __ ld(a5, FieldMemOperand(a4, literal_offset)); 1499 __ ld(a5, FieldMemOperand(a4, literal_offset));
1501 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 1500 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
1502 __ Branch(&materialized, ne, a5, Operand(at)); 1501 __ Branch(&materialized, ne, a5, Operand(at));
1503 1502
1504 // Create regexp literal using runtime function. 1503 // Create regexp literal using runtime function.
1505 // Result will be in v0. 1504 // Result will be in v0.
1506 __ li(a3, Operand(Smi::FromInt(expr->literal_index()))); 1505 __ li(a3, Operand(Smi::FromInt(expr->literal_index())));
1507 __ li(a2, Operand(expr->pattern())); 1506 __ li(a2, Operand(expr->pattern()));
1508 __ li(a1, Operand(expr->flags())); 1507 __ li(a1, Operand(expr->flags()));
1509 __ Push(a4, a3, a2, a1); 1508 __ Push(a4, a3, a2, a1);
(...skipping 3736 matching lines...) Expand 10 before | Expand all | Expand 10 after
5246 reinterpret_cast<uint64_t>( 5245 reinterpret_cast<uint64_t>(
5247 isolate->builtins()->OsrAfterStackCheck()->entry())); 5246 isolate->builtins()->OsrAfterStackCheck()->entry()));
5248 return OSR_AFTER_STACK_CHECK; 5247 return OSR_AFTER_STACK_CHECK;
5249 } 5248 }
5250 5249
5251 5250
5252 } // namespace internal 5251 } // namespace internal
5253 } // namespace v8 5252 } // namespace v8
5254 5253
5255 #endif // V8_TARGET_ARCH_MIPS64 5254 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698