| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 property->kind() == ObjectLiteral::Property::SETTER); | 1140 property->kind() == ObjectLiteral::Property::SETTER); |
| 1141 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; | 1141 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; |
| 1142 EmitSetHomeObject(expression, offset, property->GetSlot()); | 1142 EmitSetHomeObject(expression, offset, property->GetSlot()); |
| 1143 } | 1143 } |
| 1144 } | 1144 } |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { | 1147 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
| 1148 Comment cmnt(masm_, "[ ObjectLiteral"); | 1148 Comment cmnt(masm_, "[ ObjectLiteral"); |
| 1149 | 1149 |
| 1150 Handle<FixedArray> constant_properties = | 1150 Handle<BoilerplateDescription> constant_properties = |
| 1151 expr->GetOrBuildConstantProperties(isolate()); | 1151 expr->GetOrBuildConstantProperties(isolate()); |
| 1152 __ LoadP(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1152 __ LoadP(r5, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 1153 __ LoadSmiLiteral(r4, Smi::FromInt(expr->literal_index())); | 1153 __ LoadSmiLiteral(r4, Smi::FromInt(expr->literal_index())); |
| 1154 __ mov(r3, Operand(constant_properties)); | 1154 __ mov(r3, Operand(constant_properties)); |
| 1155 int flags = expr->ComputeFlags(); | 1155 int flags = expr->ComputeFlags(); |
| 1156 __ LoadSmiLiteral(r2, Smi::FromInt(flags)); | 1156 __ LoadSmiLiteral(r2, Smi::FromInt(flags)); |
| 1157 if (MustCreateObjectLiteralWithRuntime(expr)) { | 1157 if (MustCreateObjectLiteralWithRuntime(expr)) { |
| 1158 __ Push(r5, r4, r3, r2); | 1158 __ Push(r5, r4, r3, r2); |
| 1159 __ CallRuntime(Runtime::kCreateObjectLiteral); | 1159 __ CallRuntime(Runtime::kCreateObjectLiteral); |
| 1160 } else { | 1160 } else { |
| (...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2785 USE(kOSRBranchInstruction); | 2785 USE(kOSRBranchInstruction); |
| 2786 DCHECK(kOSRBranchInstruction == br_instr); | 2786 DCHECK(kOSRBranchInstruction == br_instr); |
| 2787 | 2787 |
| 2788 DCHECK(interrupt_address == | 2788 DCHECK(interrupt_address == |
| 2789 isolate->builtins()->OnStackReplacement()->entry()); | 2789 isolate->builtins()->OnStackReplacement()->entry()); |
| 2790 return ON_STACK_REPLACEMENT; | 2790 return ON_STACK_REPLACEMENT; |
| 2791 } | 2791 } |
| 2792 } // namespace internal | 2792 } // namespace internal |
| 2793 } // namespace v8 | 2793 } // namespace v8 |
| 2794 #endif // V8_TARGET_ARCH_S390 | 2794 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |