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

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

Issue 1734643002: [fullcodegen] Factor out EmitNamedPropertyLoad. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 4 years, 9 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
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 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698