OLD | NEW |
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 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 ? Runtime::kLoadLookupSlot | 1363 ? Runtime::kLoadLookupSlot |
1364 : Runtime::kLoadLookupSlotInsideTypeof; | 1364 : Runtime::kLoadLookupSlotInsideTypeof; |
1365 __ CallRuntime(function_id); | 1365 __ CallRuntime(function_id); |
1366 __ bind(&done); | 1366 __ bind(&done); |
1367 context()->Plug(v0); | 1367 context()->Plug(v0); |
1368 } | 1368 } |
1369 } | 1369 } |
1370 } | 1370 } |
1371 | 1371 |
1372 | 1372 |
1373 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | |
1374 Comment cmnt(masm_, "[ RegExpLiteral"); | |
1375 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | |
1376 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); | |
1377 __ li(a1, Operand(expr->pattern())); | |
1378 __ li(a0, Operand(Smi::FromInt(expr->flags()))); | |
1379 FastCloneRegExpStub stub(isolate()); | |
1380 __ CallStub(&stub); | |
1381 context()->Plug(v0); | |
1382 } | |
1383 | |
1384 | |
1385 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { | 1373 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { |
1386 Expression* expression = (property == NULL) ? NULL : property->value(); | 1374 Expression* expression = (property == NULL) ? NULL : property->value(); |
1387 if (expression == NULL) { | 1375 if (expression == NULL) { |
1388 __ LoadRoot(a1, Heap::kNullValueRootIndex); | 1376 __ LoadRoot(a1, Heap::kNullValueRootIndex); |
1389 PushOperand(a1); | 1377 PushOperand(a1); |
1390 } else { | 1378 } else { |
1391 VisitForStackValue(expression); | 1379 VisitForStackValue(expression); |
1392 if (NeedsHomeObject(expression)) { | 1380 if (NeedsHomeObject(expression)) { |
1393 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || | 1381 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || |
1394 property->kind() == ObjectLiteral::Property::SETTER); | 1382 property->kind() == ObjectLiteral::Property::SETTER); |
(...skipping 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3827 reinterpret_cast<uint64_t>( | 3815 reinterpret_cast<uint64_t>( |
3828 isolate->builtins()->OnStackReplacement()->entry())); | 3816 isolate->builtins()->OnStackReplacement()->entry())); |
3829 return ON_STACK_REPLACEMENT; | 3817 return ON_STACK_REPLACEMENT; |
3830 } | 3818 } |
3831 | 3819 |
3832 | 3820 |
3833 } // namespace internal | 3821 } // namespace internal |
3834 } // namespace v8 | 3822 } // namespace v8 |
3835 | 3823 |
3836 #endif // V8_TARGET_ARCH_MIPS64 | 3824 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |