OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 typeof_mode == NOT_INSIDE_TYPEOF | 1290 typeof_mode == NOT_INSIDE_TYPEOF |
1291 ? Runtime::kLoadLookupSlot | 1291 ? Runtime::kLoadLookupSlot |
1292 : Runtime::kLoadLookupSlotInsideTypeof; | 1292 : Runtime::kLoadLookupSlotInsideTypeof; |
1293 __ CallRuntime(function_id); | 1293 __ CallRuntime(function_id); |
1294 __ bind(&done); | 1294 __ bind(&done); |
1295 context()->Plug(r2); | 1295 context()->Plug(r2); |
1296 } | 1296 } |
1297 } | 1297 } |
1298 } | 1298 } |
1299 | 1299 |
1300 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | |
1301 Comment cmnt(masm_, "[ RegExpLiteral"); | |
1302 __ LoadP(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | |
1303 __ LoadSmiLiteral(r4, Smi::FromInt(expr->literal_index())); | |
1304 __ mov(r3, Operand(expr->pattern())); | |
1305 __ LoadSmiLiteral(r2, Smi::FromInt(expr->flags())); | |
1306 FastCloneRegExpStub stub(isolate()); | |
1307 __ CallStub(&stub); | |
1308 context()->Plug(r2); | |
1309 } | |
1310 | |
1311 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { | 1300 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { |
1312 Expression* expression = (property == NULL) ? NULL : property->value(); | 1301 Expression* expression = (property == NULL) ? NULL : property->value(); |
1313 if (expression == NULL) { | 1302 if (expression == NULL) { |
1314 __ LoadRoot(r3, Heap::kNullValueRootIndex); | 1303 __ LoadRoot(r3, Heap::kNullValueRootIndex); |
1315 PushOperand(r3); | 1304 PushOperand(r3); |
1316 } else { | 1305 } else { |
1317 VisitForStackValue(expression); | 1306 VisitForStackValue(expression); |
1318 if (NeedsHomeObject(expression)) { | 1307 if (NeedsHomeObject(expression)) { |
1319 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || | 1308 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || |
1320 property->kind() == ObjectLiteral::Property::SETTER); | 1309 property->kind() == ObjectLiteral::Property::SETTER); |
(...skipping 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3708 DCHECK(kOSRBranchInstruction == br_instr); | 3697 DCHECK(kOSRBranchInstruction == br_instr); |
3709 | 3698 |
3710 DCHECK(interrupt_address == | 3699 DCHECK(interrupt_address == |
3711 isolate->builtins()->OnStackReplacement()->entry()); | 3700 isolate->builtins()->OnStackReplacement()->entry()); |
3712 return ON_STACK_REPLACEMENT; | 3701 return ON_STACK_REPLACEMENT; |
3713 } | 3702 } |
3714 | 3703 |
3715 } // namespace internal | 3704 } // namespace internal |
3716 } // namespace v8 | 3705 } // namespace v8 |
3717 #endif // V8_TARGET_ARCH_S390 | 3706 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |