Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: src/full-codegen/s390/full-codegen-s390.cc

Issue 1838283003: Migrate FastCloneShallowObjectStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 Handle<FixedArray> constant_properties = expr->constant_properties(); 1339 Handle<FixedArray> constant_properties = expr->constant_properties();
1340 __ LoadP(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1340 __ LoadP(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1341 __ LoadSmiLiteral(r4, Smi::FromInt(expr->literal_index())); 1341 __ LoadSmiLiteral(r4, Smi::FromInt(expr->literal_index()));
1342 __ mov(r3, Operand(constant_properties)); 1342 __ mov(r3, Operand(constant_properties));
1343 int flags = expr->ComputeFlags(); 1343 int flags = expr->ComputeFlags();
1344 __ LoadSmiLiteral(r2, Smi::FromInt(flags)); 1344 __ LoadSmiLiteral(r2, Smi::FromInt(flags));
1345 if (MustCreateObjectLiteralWithRuntime(expr)) { 1345 if (MustCreateObjectLiteralWithRuntime(expr)) {
1346 __ Push(r5, r4, r3, r2); 1346 __ Push(r5, r4, r3, r2);
1347 __ CallRuntime(Runtime::kCreateObjectLiteral); 1347 __ CallRuntime(Runtime::kCreateObjectLiteral);
1348 } else { 1348 } else {
1349 __ push(cp);
1349 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1350 FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
1350 __ CallStub(&stub); 1351 __ CallStub(&stub);
1352 __ pop(cp);
1351 } 1353 }
1352 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); 1354 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1353 1355
1354 // If result_saved is true the result is on top of the stack. If 1356 // If result_saved is true the result is on top of the stack. If
1355 // result_saved is false the result is in r2. 1357 // result_saved is false the result is in r2.
1356 bool result_saved = false; 1358 bool result_saved = false;
1357 1359
1358 AccessorTable accessor_table(zone()); 1360 AccessorTable accessor_table(zone());
1359 int property_index = 0; 1361 int property_index = 0;
1360 for (; property_index < expr->properties()->length(); property_index++) { 1362 for (; property_index < expr->properties()->length(); property_index++) {
(...skipping 2611 matching lines...) Expand 10 before | Expand all | Expand 10 after
3972 DCHECK(kOSRBranchInstruction == br_instr); 3974 DCHECK(kOSRBranchInstruction == br_instr);
3973 3975
3974 DCHECK(interrupt_address == 3976 DCHECK(interrupt_address ==
3975 isolate->builtins()->OnStackReplacement()->entry()); 3977 isolate->builtins()->OnStackReplacement()->entry());
3976 return ON_STACK_REPLACEMENT; 3978 return ON_STACK_REPLACEMENT;
3977 } 3979 }
3978 3980
3979 } // namespace internal 3981 } // namespace internal
3980 } // namespace v8 3982 } // namespace v8
3981 #endif // V8_TARGET_ARCH_S390 3983 #endif // V8_TARGET_ARCH_S390
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698