OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 4070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4081 void FullCodeGenerator::ClearPendingMessage() { | 4081 void FullCodeGenerator::ClearPendingMessage() { |
4082 DCHECK(!result_register().is(r4)); | 4082 DCHECK(!result_register().is(r4)); |
4083 ExternalReference pending_message_obj = | 4083 ExternalReference pending_message_obj = |
4084 ExternalReference::address_of_pending_message_obj(isolate()); | 4084 ExternalReference::address_of_pending_message_obj(isolate()); |
4085 __ LoadRoot(r4, Heap::kTheHoleValueRootIndex); | 4085 __ LoadRoot(r4, Heap::kTheHoleValueRootIndex); |
4086 __ mov(ip, Operand(pending_message_obj)); | 4086 __ mov(ip, Operand(pending_message_obj)); |
4087 __ StoreP(r4, MemOperand(ip)); | 4087 __ StoreP(r4, MemOperand(ip)); |
4088 } | 4088 } |
4089 | 4089 |
4090 | 4090 |
4091 void FullCodeGenerator::EmitLoadStoreICSlot(FeedbackVectorSlot slot) { | |
4092 DCHECK(!slot.IsInvalid()); | |
4093 __ mov(VectorStoreICTrampolineDescriptor::SlotRegister(), | |
4094 Operand(SmiFromSlot(slot))); | |
4095 } | |
4096 | |
4097 void FullCodeGenerator::DeferredCommands::EmitCommands() { | 4091 void FullCodeGenerator::DeferredCommands::EmitCommands() { |
4098 DCHECK(!result_register().is(r4)); | 4092 DCHECK(!result_register().is(r4)); |
4099 // Restore the accumulator (r3) and token (r4). | 4093 // Restore the accumulator (r3) and token (r4). |
4100 __ Pop(r4, result_register()); | 4094 __ Pop(r4, result_register()); |
4101 for (DeferredCommand cmd : commands_) { | 4095 for (DeferredCommand cmd : commands_) { |
4102 Label skip; | 4096 Label skip; |
4103 __ CmpSmiLiteral(r4, Smi::FromInt(cmd.token), r0); | 4097 __ CmpSmiLiteral(r4, Smi::FromInt(cmd.token), r0); |
4104 __ bne(&skip); | 4098 __ bne(&skip); |
4105 switch (cmd.command) { | 4099 switch (cmd.command) { |
4106 case kReturn: | 4100 case kReturn: |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4189 return ON_STACK_REPLACEMENT; | 4183 return ON_STACK_REPLACEMENT; |
4190 } | 4184 } |
4191 | 4185 |
4192 DCHECK(interrupt_address == | 4186 DCHECK(interrupt_address == |
4193 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4187 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4194 return OSR_AFTER_STACK_CHECK; | 4188 return OSR_AFTER_STACK_CHECK; |
4195 } | 4189 } |
4196 } // namespace internal | 4190 } // namespace internal |
4197 } // namespace v8 | 4191 } // namespace v8 |
4198 #endif // V8_TARGET_ARCH_PPC | 4192 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |