| 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 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2239 __ bind(&done); | 2239 __ bind(&done); |
| 2240 context()->Plug(r3); | 2240 context()->Plug(r3); |
| 2241 } | 2241 } |
| 2242 | 2242 |
| 2243 | 2243 |
| 2244 void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { | 2244 void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
| 2245 for (int i = 0; i < lit->properties()->length(); i++) { | 2245 for (int i = 0; i < lit->properties()->length(); i++) { |
| 2246 ObjectLiteral::Property* property = lit->properties()->at(i); | 2246 ObjectLiteral::Property* property = lit->properties()->at(i); |
| 2247 Expression* value = property->value(); | 2247 Expression* value = property->value(); |
| 2248 | 2248 |
| 2249 Register scratch = r4; |
| 2249 if (property->is_static()) { | 2250 if (property->is_static()) { |
| 2250 __ LoadP(scratch, MemOperand(sp, kPointerSize)); // constructor | 2251 __ LoadP(scratch, MemOperand(sp, kPointerSize)); // constructor |
| 2251 } else { | 2252 } else { |
| 2252 __ LoadP(scratch, MemOperand(sp, 0)); // prototype | 2253 __ LoadP(scratch, MemOperand(sp, 0)); // prototype |
| 2253 } | 2254 } |
| 2254 __ push(scratch); | 2255 __ push(scratch); |
| 2255 EmitPropertyKey(property, lit->GetIdForProperty(i)); | 2256 EmitPropertyKey(property, lit->GetIdForProperty(i)); |
| 2256 | 2257 |
| 2257 // The static prototype property is read only. We handle the non computed | 2258 // The static prototype property is read only. We handle the non computed |
| 2258 // property name case in the parser. Since this is the only case where we | 2259 // property name case in the parser. Since this is the only case where we |
| (...skipping 2394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4653 return ON_STACK_REPLACEMENT; | 4654 return ON_STACK_REPLACEMENT; |
| 4654 } | 4655 } |
| 4655 | 4656 |
| 4656 DCHECK(interrupt_address == | 4657 DCHECK(interrupt_address == |
| 4657 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4658 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4658 return OSR_AFTER_STACK_CHECK; | 4659 return OSR_AFTER_STACK_CHECK; |
| 4659 } | 4660 } |
| 4660 } // namespace internal | 4661 } // namespace internal |
| 4661 } // namespace v8 | 4662 } // namespace v8 |
| 4662 #endif // V8_TARGET_ARCH_PPC | 4663 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |