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

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

Issue 1727953004: [fullcodegen] Factor out EmitLoadStoreICSlot from archs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3968 matching lines...) Expand 10 before | Expand all | Expand 10 after
3979 3979
3980 void FullCodeGenerator::ClearPendingMessage() { 3980 void FullCodeGenerator::ClearPendingMessage() {
3981 DCHECK(!result_register().is(edx)); 3981 DCHECK(!result_register().is(edx));
3982 ExternalReference pending_message_obj = 3982 ExternalReference pending_message_obj =
3983 ExternalReference::address_of_pending_message_obj(isolate()); 3983 ExternalReference::address_of_pending_message_obj(isolate());
3984 __ mov(edx, Immediate(isolate()->factory()->the_hole_value())); 3984 __ mov(edx, Immediate(isolate()->factory()->the_hole_value()));
3985 __ mov(Operand::StaticVariable(pending_message_obj), edx); 3985 __ mov(Operand::StaticVariable(pending_message_obj), edx);
3986 } 3986 }
3987 3987
3988 3988
3989 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
3990 DCHECK(!slot.IsInvalid());
3991 __ mov(VectorStoreICTrampolineDescriptor::SlotRegister(),
3992 Immediate(SmiFromSlot(slot)));
3993 }
3994
3995 void FullCodeGenerator::DeferredCommands::EmitCommands() { 3989 void FullCodeGenerator::DeferredCommands::EmitCommands() {
3996 DCHECK(!result_register().is(edx)); 3990 DCHECK(!result_register().is(edx));
3997 __ Pop(result_register()); // Restore the accumulator. 3991 __ Pop(result_register()); // Restore the accumulator.
3998 __ Pop(edx); // Get the token. 3992 __ Pop(edx); // Get the token.
3999 for (DeferredCommand cmd : commands_) { 3993 for (DeferredCommand cmd : commands_) {
4000 Label skip; 3994 Label skip;
4001 __ cmp(edx, Immediate(Smi::FromInt(cmd.token))); 3995 __ cmp(edx, Immediate(Smi::FromInt(cmd.token)));
4002 __ j(not_equal, &skip); 3996 __ j(not_equal, &skip);
4003 switch (cmd.command) { 3997 switch (cmd.command) {
4004 case kReturn: 3998 case kReturn:
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
4096 Assembler::target_address_at(call_target_address, 4090 Assembler::target_address_at(call_target_address,
4097 unoptimized_code)); 4091 unoptimized_code));
4098 return OSR_AFTER_STACK_CHECK; 4092 return OSR_AFTER_STACK_CHECK;
4099 } 4093 }
4100 4094
4101 4095
4102 } // namespace internal 4096 } // namespace internal
4103 } // namespace v8 4097 } // namespace v8
4104 4098
4105 #endif // V8_TARGET_ARCH_IA32 4099 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698