| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 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 __ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1462 __ lw(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 3499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4975 reinterpret_cast<uint32_t>( | 4975 reinterpret_cast<uint32_t>( |
| 4976 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4976 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4977 return OSR_AFTER_STACK_CHECK; | 4977 return OSR_AFTER_STACK_CHECK; |
| 4978 } | 4978 } |
| 4979 | 4979 |
| 4980 | 4980 |
| 4981 } // namespace internal | 4981 } // namespace internal |
| 4982 } // namespace v8 | 4982 } // namespace v8 |
| 4983 | 4983 |
| 4984 #endif // V8_TARGET_ARCH_MIPS | 4984 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |