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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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, 9 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/x64/full-codegen-x64.cc ('k') | no next file » | 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_X87 5 #if V8_TARGET_ARCH_X87
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 3960 matching lines...) Expand 10 before | Expand all | Expand 10 after
3971 3971
3972 void FullCodeGenerator::ClearPendingMessage() { 3972 void FullCodeGenerator::ClearPendingMessage() {
3973 DCHECK(!result_register().is(edx)); 3973 DCHECK(!result_register().is(edx));
3974 ExternalReference pending_message_obj = 3974 ExternalReference pending_message_obj =
3975 ExternalReference::address_of_pending_message_obj(isolate()); 3975 ExternalReference::address_of_pending_message_obj(isolate());
3976 __ mov(edx, Immediate(isolate()->factory()->the_hole_value())); 3976 __ mov(edx, Immediate(isolate()->factory()->the_hole_value()));
3977 __ mov(Operand::StaticVariable(pending_message_obj), edx); 3977 __ mov(Operand::StaticVariable(pending_message_obj), edx);
3978 } 3978 }
3979 3979
3980 3980
3981 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
3982 DCHECK(!slot.IsInvalid());
3983 __ mov(VectorStoreICTrampolineDescriptor::SlotRegister(),
3984 Immediate(SmiFromSlot(slot)));
3985 }
3986
3987 void FullCodeGenerator::DeferredCommands::EmitCommands() { 3981 void FullCodeGenerator::DeferredCommands::EmitCommands() {
3988 DCHECK(!result_register().is(edx)); 3982 DCHECK(!result_register().is(edx));
3989 __ Pop(result_register()); // Restore the accumulator. 3983 __ Pop(result_register()); // Restore the accumulator.
3990 __ Pop(edx); // Get the token. 3984 __ Pop(edx); // Get the token.
3991 for (DeferredCommand cmd : commands_) { 3985 for (DeferredCommand cmd : commands_) {
3992 Label skip; 3986 Label skip;
3993 __ cmp(edx, Immediate(Smi::FromInt(cmd.token))); 3987 __ cmp(edx, Immediate(Smi::FromInt(cmd.token)));
3994 __ j(not_equal, &skip); 3988 __ j(not_equal, &skip);
3995 switch (cmd.command) { 3989 switch (cmd.command) {
3996 case kReturn: 3990 case kReturn:
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
4088 Assembler::target_address_at(call_target_address, 4082 Assembler::target_address_at(call_target_address,
4089 unoptimized_code)); 4083 unoptimized_code));
4090 return OSR_AFTER_STACK_CHECK; 4084 return OSR_AFTER_STACK_CHECK;
4091 } 4085 }
4092 4086
4093 4087
4094 } // namespace internal 4088 } // namespace internal
4095 } // namespace v8 4089 } // namespace v8
4096 4090
4097 #endif // V8_TARGET_ARCH_X87 4091 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698