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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.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_X64 5 #if V8_TARGET_ARCH_X64
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 3957 matching lines...) Expand 10 before | Expand all | Expand 10 after
3968 3968
3969 void FullCodeGenerator::ClearPendingMessage() { 3969 void FullCodeGenerator::ClearPendingMessage() {
3970 DCHECK(!result_register().is(rdx)); 3970 DCHECK(!result_register().is(rdx));
3971 ExternalReference pending_message_obj = 3971 ExternalReference pending_message_obj =
3972 ExternalReference::address_of_pending_message_obj(isolate()); 3972 ExternalReference::address_of_pending_message_obj(isolate());
3973 __ LoadRoot(rdx, Heap::kTheHoleValueRootIndex); 3973 __ LoadRoot(rdx, Heap::kTheHoleValueRootIndex);
3974 __ Store(pending_message_obj, rdx); 3974 __ Store(pending_message_obj, rdx);
3975 } 3975 }
3976 3976
3977 3977
3978 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) {
3979 DCHECK(!slot.IsInvalid());
3980 __ Move(VectorStoreICTrampolineDescriptor::SlotRegister(), SmiFromSlot(slot));
3981 }
3982
3983 void FullCodeGenerator::DeferredCommands::EmitCommands() { 3978 void FullCodeGenerator::DeferredCommands::EmitCommands() {
3984 __ Pop(result_register()); // Restore the accumulator. 3979 __ Pop(result_register()); // Restore the accumulator.
3985 __ Pop(rdx); // Get the token. 3980 __ Pop(rdx); // Get the token.
3986 for (DeferredCommand cmd : commands_) { 3981 for (DeferredCommand cmd : commands_) {
3987 Label skip; 3982 Label skip;
3988 __ SmiCompare(rdx, Smi::FromInt(cmd.token)); 3983 __ SmiCompare(rdx, Smi::FromInt(cmd.token));
3989 __ j(not_equal, &skip); 3984 __ j(not_equal, &skip);
3990 switch (cmd.command) { 3985 switch (cmd.command) {
3991 case kReturn: 3986 case kReturn:
3992 codegen_->EmitUnwindAndReturn(); 3987 codegen_->EmitUnwindAndReturn();
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
4082 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4077 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4083 Assembler::target_address_at(call_target_address, 4078 Assembler::target_address_at(call_target_address,
4084 unoptimized_code)); 4079 unoptimized_code));
4085 return OSR_AFTER_STACK_CHECK; 4080 return OSR_AFTER_STACK_CHECK;
4086 } 4081 }
4087 4082
4088 } // namespace internal 4083 } // namespace internal
4089 } // namespace v8 4084 } // namespace v8
4090 4085
4091 #endif // V8_TARGET_ARCH_X64 4086 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698