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

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

Issue 1734643002: [fullcodegen] Factor out EmitNamedPropertyLoad. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. 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 | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 2078 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 __ LoadRoot(a4, Heap::kEmptyFixedArrayRootIndex); 2089 __ LoadRoot(a4, Heap::kEmptyFixedArrayRootIndex);
2090 __ sd(a1, FieldMemOperand(v0, HeapObject::kMapOffset)); 2090 __ sd(a1, FieldMemOperand(v0, HeapObject::kMapOffset));
2091 __ sd(a4, FieldMemOperand(v0, JSObject::kPropertiesOffset)); 2091 __ sd(a4, FieldMemOperand(v0, JSObject::kPropertiesOffset));
2092 __ sd(a4, FieldMemOperand(v0, JSObject::kElementsOffset)); 2092 __ sd(a4, FieldMemOperand(v0, JSObject::kElementsOffset));
2093 __ sd(a2, FieldMemOperand(v0, JSIteratorResult::kValueOffset)); 2093 __ sd(a2, FieldMemOperand(v0, JSIteratorResult::kValueOffset));
2094 __ sd(a3, FieldMemOperand(v0, JSIteratorResult::kDoneOffset)); 2094 __ sd(a3, FieldMemOperand(v0, JSIteratorResult::kDoneOffset));
2095 STATIC_ASSERT(JSIteratorResult::kSize == 5 * kPointerSize); 2095 STATIC_ASSERT(JSIteratorResult::kSize == 5 * kPointerSize);
2096 } 2096 }
2097 2097
2098 2098
2099 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
2100 SetExpressionPosition(prop);
2101 Literal* key = prop->key()->AsLiteral();
2102 DCHECK(!prop->IsSuperAccess());
2103
2104 __ li(LoadDescriptor::NameRegister(), Operand(key->value()));
2105 __ li(LoadDescriptor::SlotRegister(),
2106 Operand(SmiFromSlot(prop->PropertyFeedbackSlot())));
2107 CallLoadIC(NOT_INSIDE_TYPEOF);
2108 }
2109
2110
2111 void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, 2099 void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr,
2112 Token::Value op, 2100 Token::Value op,
2113 Expression* left_expr, 2101 Expression* left_expr,
2114 Expression* right_expr) { 2102 Expression* right_expr) {
2115 Label done, smi_case, stub_call; 2103 Label done, smi_case, stub_call;
2116 2104
2117 Register scratch1 = a2; 2105 Register scratch1 = a2;
2118 Register scratch2 = a3; 2106 Register scratch2 = a3;
2119 2107
2120 // Get the arguments. 2108 // Get the arguments.
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after
4268 reinterpret_cast<uint64_t>( 4256 reinterpret_cast<uint64_t>(
4269 isolate->builtins()->OsrAfterStackCheck()->entry())); 4257 isolate->builtins()->OsrAfterStackCheck()->entry()));
4270 return OSR_AFTER_STACK_CHECK; 4258 return OSR_AFTER_STACK_CHECK;
4271 } 4259 }
4272 4260
4273 4261
4274 } // namespace internal 4262 } // namespace internal
4275 } // namespace v8 4263 } // namespace v8
4276 4264
4277 #endif // V8_TARGET_ARCH_MIPS64 4265 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698