OLD | NEW |
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/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/builtins/builtins-constructor.h" | 9 #include "src/builtins/builtins-constructor.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; | 1206 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; |
1207 EmitSetHomeObject(expression, offset, property->GetSlot()); | 1207 EmitSetHomeObject(expression, offset, property->GetSlot()); |
1208 } | 1208 } |
1209 } | 1209 } |
1210 } | 1210 } |
1211 | 1211 |
1212 | 1212 |
1213 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { | 1213 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
1214 Comment cmnt(masm_, "[ ObjectLiteral"); | 1214 Comment cmnt(masm_, "[ ObjectLiteral"); |
1215 | 1215 |
1216 Handle<FixedArray> constant_properties = | 1216 Handle<BoilerplateDescription> constant_properties = |
1217 expr->GetOrBuildConstantProperties(isolate()); | 1217 expr->GetOrBuildConstantProperties(isolate()); |
1218 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1218 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1219 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); | 1219 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); |
1220 __ mov(r1, Operand(constant_properties)); | 1220 __ mov(r1, Operand(constant_properties)); |
1221 int flags = expr->ComputeFlags(); | 1221 int flags = expr->ComputeFlags(); |
1222 __ mov(r0, Operand(Smi::FromInt(flags))); | 1222 __ mov(r0, Operand(Smi::FromInt(flags))); |
1223 if (MustCreateObjectLiteralWithRuntime(expr)) { | 1223 if (MustCreateObjectLiteralWithRuntime(expr)) { |
1224 __ Push(r3, r2, r1, r0); | 1224 __ Push(r3, r2, r1, r0); |
1225 __ CallRuntime(Runtime::kCreateObjectLiteral); | 1225 __ CallRuntime(Runtime::kCreateObjectLiteral); |
1226 } else { | 1226 } else { |
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2909 DCHECK(interrupt_address == | 2909 DCHECK(interrupt_address == |
2910 isolate->builtins()->OnStackReplacement()->entry()); | 2910 isolate->builtins()->OnStackReplacement()->entry()); |
2911 return ON_STACK_REPLACEMENT; | 2911 return ON_STACK_REPLACEMENT; |
2912 } | 2912 } |
2913 | 2913 |
2914 | 2914 |
2915 } // namespace internal | 2915 } // namespace internal |
2916 } // namespace v8 | 2916 } // namespace v8 |
2917 | 2917 |
2918 #endif // V8_TARGET_ARCH_ARM | 2918 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |