| 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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 ? Runtime::kLoadLookupSlot | 1328 ? Runtime::kLoadLookupSlot |
| 1329 : Runtime::kLoadLookupSlotInsideTypeof; | 1329 : Runtime::kLoadLookupSlotInsideTypeof; |
| 1330 __ CallRuntime(function_id); | 1330 __ CallRuntime(function_id); |
| 1331 __ bind(&done); | 1331 __ bind(&done); |
| 1332 context()->Plug(r3); | 1332 context()->Plug(r3); |
| 1333 } | 1333 } |
| 1334 } | 1334 } |
| 1335 } | 1335 } |
| 1336 | 1336 |
| 1337 | 1337 |
| 1338 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | |
| 1339 Comment cmnt(masm_, "[ RegExpLiteral"); | |
| 1340 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | |
| 1341 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); | |
| 1342 __ mov(r4, Operand(expr->pattern())); | |
| 1343 __ LoadSmiLiteral(r3, Smi::FromInt(expr->flags())); | |
| 1344 FastCloneRegExpStub stub(isolate()); | |
| 1345 __ CallStub(&stub); | |
| 1346 context()->Plug(r3); | |
| 1347 } | |
| 1348 | |
| 1349 | |
| 1350 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { | 1338 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { |
| 1351 Expression* expression = (property == NULL) ? NULL : property->value(); | 1339 Expression* expression = (property == NULL) ? NULL : property->value(); |
| 1352 if (expression == NULL) { | 1340 if (expression == NULL) { |
| 1353 __ LoadRoot(r4, Heap::kNullValueRootIndex); | 1341 __ LoadRoot(r4, Heap::kNullValueRootIndex); |
| 1354 PushOperand(r4); | 1342 PushOperand(r4); |
| 1355 } else { | 1343 } else { |
| 1356 VisitForStackValue(expression); | 1344 VisitForStackValue(expression); |
| 1357 if (NeedsHomeObject(expression)) { | 1345 if (NeedsHomeObject(expression)) { |
| 1358 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || | 1346 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || |
| 1359 property->kind() == ObjectLiteral::Property::SETTER); | 1347 property->kind() == ObjectLiteral::Property::SETTER); |
| (...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3797 | 3785 |
| 3798 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 3786 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
| 3799 | 3787 |
| 3800 DCHECK(interrupt_address == | 3788 DCHECK(interrupt_address == |
| 3801 isolate->builtins()->OnStackReplacement()->entry()); | 3789 isolate->builtins()->OnStackReplacement()->entry()); |
| 3802 return ON_STACK_REPLACEMENT; | 3790 return ON_STACK_REPLACEMENT; |
| 3803 } | 3791 } |
| 3804 } // namespace internal | 3792 } // namespace internal |
| 3805 } // namespace v8 | 3793 } // namespace v8 |
| 3806 #endif // V8_TARGET_ARCH_PPC | 3794 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |