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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 1675383002: PPC: Fix "[compiler] Remove the special case "prototype" load in class literals." (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 | « no previous file | src/ppc/macro-assembler-ppc.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698