| 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 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2065 done ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex); | 2065 done ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex); |
| 2066 __ LoadRoot(r7, Heap::kEmptyFixedArrayRootIndex); | 2066 __ LoadRoot(r7, Heap::kEmptyFixedArrayRootIndex); |
| 2067 __ StoreP(r4, FieldMemOperand(r3, HeapObject::kMapOffset), r0); | 2067 __ StoreP(r4, FieldMemOperand(r3, HeapObject::kMapOffset), r0); |
| 2068 __ StoreP(r7, FieldMemOperand(r3, JSObject::kPropertiesOffset), r0); | 2068 __ StoreP(r7, FieldMemOperand(r3, JSObject::kPropertiesOffset), r0); |
| 2069 __ StoreP(r7, FieldMemOperand(r3, JSObject::kElementsOffset), r0); | 2069 __ StoreP(r7, FieldMemOperand(r3, JSObject::kElementsOffset), r0); |
| 2070 __ StoreP(r5, FieldMemOperand(r3, JSIteratorResult::kValueOffset), r0); | 2070 __ StoreP(r5, FieldMemOperand(r3, JSIteratorResult::kValueOffset), r0); |
| 2071 __ StoreP(r6, FieldMemOperand(r3, JSIteratorResult::kDoneOffset), r0); | 2071 __ StoreP(r6, FieldMemOperand(r3, JSIteratorResult::kDoneOffset), r0); |
| 2072 } | 2072 } |
| 2073 | 2073 |
| 2074 | 2074 |
| 2075 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { | |
| 2076 SetExpressionPosition(prop); | |
| 2077 Literal* key = prop->key()->AsLiteral(); | |
| 2078 DCHECK(!prop->IsSuperAccess()); | |
| 2079 | |
| 2080 __ mov(LoadDescriptor::NameRegister(), Operand(key->value())); | |
| 2081 __ mov(LoadDescriptor::SlotRegister(), | |
| 2082 Operand(SmiFromSlot(prop->PropertyFeedbackSlot()))); | |
| 2083 CallLoadIC(NOT_INSIDE_TYPEOF); | |
| 2084 } | |
| 2085 | |
| 2086 | |
| 2087 void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, | 2075 void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, |
| 2088 Token::Value op, | 2076 Token::Value op, |
| 2089 Expression* left_expr, | 2077 Expression* left_expr, |
| 2090 Expression* right_expr) { | 2078 Expression* right_expr) { |
| 2091 Label done, smi_case, stub_call; | 2079 Label done, smi_case, stub_call; |
| 2092 | 2080 |
| 2093 Register scratch1 = r5; | 2081 Register scratch1 = r5; |
| 2094 Register scratch2 = r6; | 2082 Register scratch2 = r6; |
| 2095 | 2083 |
| 2096 // Get the arguments. | 2084 // Get the arguments. |
| (...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4222 return ON_STACK_REPLACEMENT; | 4210 return ON_STACK_REPLACEMENT; |
| 4223 } | 4211 } |
| 4224 | 4212 |
| 4225 DCHECK(interrupt_address == | 4213 DCHECK(interrupt_address == |
| 4226 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4214 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4227 return OSR_AFTER_STACK_CHECK; | 4215 return OSR_AFTER_STACK_CHECK; |
| 4228 } | 4216 } |
| 4229 } // namespace internal | 4217 } // namespace internal |
| 4230 } // namespace v8 | 4218 } // namespace v8 |
| 4231 #endif // V8_TARGET_ARCH_PPC | 4219 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |