OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1422 } | 1422 } |
1423 } | 1423 } |
1424 } | 1424 } |
1425 | 1425 |
1426 | 1426 |
1427 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | 1427 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
1428 Comment cmnt(masm_, "[ RegExpLiteral"); | 1428 Comment cmnt(masm_, "[ RegExpLiteral"); |
1429 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1429 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1430 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); | 1430 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); |
1431 __ mov(r4, Operand(expr->pattern())); | 1431 __ mov(r4, Operand(expr->pattern())); |
1432 __ mov(r3, Operand(expr->flags())); | 1432 __ LoadSmiLiteral(r3, Smi::FromInt(expr->flags())); |
1433 FastCloneRegExpStub stub(isolate()); | 1433 FastCloneRegExpStub stub(isolate()); |
1434 __ CallStub(&stub); | 1434 __ CallStub(&stub); |
1435 context()->Plug(r3); | 1435 context()->Plug(r3); |
1436 } | 1436 } |
1437 | 1437 |
1438 | 1438 |
1439 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { | 1439 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { |
1440 Expression* expression = (property == NULL) ? NULL : property->value(); | 1440 Expression* expression = (property == NULL) ? NULL : property->value(); |
1441 if (expression == NULL) { | 1441 if (expression == NULL) { |
1442 __ LoadRoot(r4, Heap::kNullValueRootIndex); | 1442 __ LoadRoot(r4, Heap::kNullValueRootIndex); |
(...skipping 3517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4960 return ON_STACK_REPLACEMENT; | 4960 return ON_STACK_REPLACEMENT; |
4961 } | 4961 } |
4962 | 4962 |
4963 DCHECK(interrupt_address == | 4963 DCHECK(interrupt_address == |
4964 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4964 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4965 return OSR_AFTER_STACK_CHECK; | 4965 return OSR_AFTER_STACK_CHECK; |
4966 } | 4966 } |
4967 } // namespace internal | 4967 } // namespace internal |
4968 } // namespace v8 | 4968 } // namespace v8 |
4969 #endif // V8_TARGET_ARCH_PPC | 4969 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |