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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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
« no previous file with comments | « src/arm64/macro-assembler-arm64.h ('k') | src/full-codegen/arm64/full-codegen-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after
2086 done ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex); 2086 done ? Heap::kTrueValueRootIndex : Heap::kFalseValueRootIndex);
2087 __ LoadRoot(r4, Heap::kEmptyFixedArrayRootIndex); 2087 __ LoadRoot(r4, Heap::kEmptyFixedArrayRootIndex);
2088 __ str(r1, FieldMemOperand(r0, HeapObject::kMapOffset)); 2088 __ str(r1, FieldMemOperand(r0, HeapObject::kMapOffset));
2089 __ str(r4, FieldMemOperand(r0, JSObject::kPropertiesOffset)); 2089 __ str(r4, FieldMemOperand(r0, JSObject::kPropertiesOffset));
2090 __ str(r4, FieldMemOperand(r0, JSObject::kElementsOffset)); 2090 __ str(r4, FieldMemOperand(r0, JSObject::kElementsOffset));
2091 __ str(r2, FieldMemOperand(r0, JSIteratorResult::kValueOffset)); 2091 __ str(r2, FieldMemOperand(r0, JSIteratorResult::kValueOffset));
2092 __ str(r3, FieldMemOperand(r0, JSIteratorResult::kDoneOffset)); 2092 __ str(r3, FieldMemOperand(r0, JSIteratorResult::kDoneOffset));
2093 } 2093 }
2094 2094
2095 2095
2096 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
2097 SetExpressionPosition(prop);
2098 Literal* key = prop->key()->AsLiteral();
2099 DCHECK(!prop->IsSuperAccess());
2100
2101 __ mov(LoadDescriptor::NameRegister(), Operand(key->value()));
2102 __ mov(LoadDescriptor::SlotRegister(),
2103 Operand(SmiFromSlot(prop->PropertyFeedbackSlot())));
2104 CallLoadIC(NOT_INSIDE_TYPEOF);
2105 }
2106
2107
2108 void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, 2096 void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr,
2109 Token::Value op, 2097 Token::Value op,
2110 Expression* left_expr, 2098 Expression* left_expr,
2111 Expression* right_expr) { 2099 Expression* right_expr) {
2112 Label done, smi_case, stub_call; 2100 Label done, smi_case, stub_call;
2113 2101
2114 Register scratch1 = r2; 2102 Register scratch1 = r2;
2115 Register scratch2 = r3; 2103 Register scratch2 = r3;
2116 2104
2117 // Get the arguments. 2105 // Get the arguments.
(...skipping 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after
4307 DCHECK(interrupt_address == 4295 DCHECK(interrupt_address ==
4308 isolate->builtins()->OsrAfterStackCheck()->entry()); 4296 isolate->builtins()->OsrAfterStackCheck()->entry());
4309 return OSR_AFTER_STACK_CHECK; 4297 return OSR_AFTER_STACK_CHECK;
4310 } 4298 }
4311 4299
4312 4300
4313 } // namespace internal 4301 } // namespace internal
4314 } // namespace v8 4302 } // namespace v8
4315 4303
4316 #endif // V8_TARGET_ARCH_ARM 4304 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698