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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1347 __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1348 __ push(Immediate(Smi::FromInt(expr->literal_index()))); 1348 __ push(Immediate(Smi::FromInt(expr->literal_index())));
1349 __ push(Immediate(constant_properties)); 1349 __ push(Immediate(constant_properties));
1350 __ push(Immediate(Smi::FromInt(flags))); 1350 __ push(Immediate(Smi::FromInt(flags)));
1351 __ CallRuntime(Runtime::kCreateObjectLiteral); 1351 __ CallRuntime(Runtime::kCreateObjectLiteral);
1352 } else { 1352 } else {
1353 __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1353 __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1354 __ mov(ebx, Immediate(Smi::FromInt(expr->literal_index()))); 1354 __ mov(ebx, Immediate(Smi::FromInt(expr->literal_index())));
1355 __ mov(ecx, Immediate(constant_properties)); 1355 __ mov(ecx, Immediate(constant_properties));
1356 __ mov(edx, Immediate(Smi::FromInt(flags))); 1356 __ mov(edx, Immediate(Smi::FromInt(flags)));
1357 __ push(esi);
1357 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); 1358 FastCloneShallowObjectStub stub(isolate(), expr->properties_count());
1358 __ CallStub(&stub); 1359 __ CallStub(&stub);
1360 __ pop(esi);
1359 } 1361 }
1360 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); 1362 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1361 1363
1362 // If result_saved is true the result is on top of the stack. If 1364 // If result_saved is true the result is on top of the stack. If
1363 // result_saved is false the result is in eax. 1365 // result_saved is false the result is in eax.
1364 bool result_saved = false; 1366 bool result_saved = false;
1365 1367
1366 AccessorTable accessor_table(zone()); 1368 AccessorTable accessor_table(zone());
1367 int property_index = 0; 1369 int property_index = 0;
1368 for (; property_index < expr->properties()->length(); property_index++) { 1370 for (; property_index < expr->properties()->length(); property_index++) {
(...skipping 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after
3985 isolate->builtins()->OnStackReplacement()->entry(), 3987 isolate->builtins()->OnStackReplacement()->entry(),
3986 Assembler::target_address_at(call_target_address, unoptimized_code)); 3988 Assembler::target_address_at(call_target_address, unoptimized_code));
3987 return ON_STACK_REPLACEMENT; 3989 return ON_STACK_REPLACEMENT;
3988 } 3990 }
3989 3991
3990 3992
3991 } // namespace internal 3993 } // namespace internal
3992 } // namespace v8 3994 } // namespace v8
3993 3995
3994 #endif // V8_TARGET_ARCH_IA32 3996 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698