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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 } | 1455 } |
1456 } | 1456 } |
1457 } | 1457 } |
1458 | 1458 |
1459 | 1459 |
1460 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | 1460 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
1461 Comment cmnt(masm_, "[ RegExpLiteral"); | 1461 Comment cmnt(masm_, "[ RegExpLiteral"); |
1462 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1462 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1463 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); | 1463 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
1464 __ li(a1, Operand(expr->pattern())); | 1464 __ li(a1, Operand(expr->pattern())); |
1465 __ li(a0, Operand(expr->flags())); | 1465 __ li(a0, Operand(Smi::FromInt(expr->flags()))); |
1466 FastCloneRegExpStub stub(isolate()); | 1466 FastCloneRegExpStub stub(isolate()); |
1467 __ CallStub(&stub); | 1467 __ CallStub(&stub); |
1468 context()->Plug(v0); | 1468 context()->Plug(v0); |
1469 } | 1469 } |
1470 | 1470 |
1471 | 1471 |
1472 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { | 1472 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { |
1473 Expression* expression = (property == NULL) ? NULL : property->value(); | 1473 Expression* expression = (property == NULL) ? NULL : property->value(); |
1474 if (expression == NULL) { | 1474 if (expression == NULL) { |
1475 __ LoadRoot(a1, Heap::kNullValueRootIndex); | 1475 __ LoadRoot(a1, Heap::kNullValueRootIndex); |
(...skipping 3507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4983 reinterpret_cast<uint64_t>( | 4983 reinterpret_cast<uint64_t>( |
4984 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4984 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4985 return OSR_AFTER_STACK_CHECK; | 4985 return OSR_AFTER_STACK_CHECK; |
4986 } | 4986 } |
4987 | 4987 |
4988 | 4988 |
4989 } // namespace internal | 4989 } // namespace internal |
4990 } // namespace v8 | 4990 } // namespace v8 |
4991 | 4991 |
4992 #endif // V8_TARGET_ARCH_MIPS64 | 4992 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |