| 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/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
| 8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 DCHECK(!property->is_computed_name()); | 1165 DCHECK(!property->is_computed_name()); |
| 1166 if (property->IsCompileTimeValue()) continue; | 1166 if (property->IsCompileTimeValue()) continue; |
| 1167 | 1167 |
| 1168 Literal* key = property->key()->AsLiteral(); | 1168 Literal* key = property->key()->AsLiteral(); |
| 1169 Expression* value = property->value(); | 1169 Expression* value = property->value(); |
| 1170 if (!result_saved) { | 1170 if (!result_saved) { |
| 1171 PushOperand(r2); // Save result on stack | 1171 PushOperand(r2); // Save result on stack |
| 1172 result_saved = true; | 1172 result_saved = true; |
| 1173 } | 1173 } |
| 1174 switch (property->kind()) { | 1174 switch (property->kind()) { |
| 1175 case ObjectLiteral::Property::SPREAD: |
| 1175 case ObjectLiteral::Property::CONSTANT: | 1176 case ObjectLiteral::Property::CONSTANT: |
| 1176 UNREACHABLE(); | 1177 UNREACHABLE(); |
| 1177 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1178 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
| 1178 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); | 1179 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); |
| 1179 // Fall through. | 1180 // Fall through. |
| 1180 case ObjectLiteral::Property::COMPUTED: | 1181 case ObjectLiteral::Property::COMPUTED: |
| 1181 // It is safe to use [[Put]] here because the boilerplate already | 1182 // It is safe to use [[Put]] here because the boilerplate already |
| 1182 // contains computed properties with an uninitialized value. | 1183 // contains computed properties with an uninitialized value. |
| 1183 if (key->IsStringLiteral()) { | 1184 if (key->IsStringLiteral()) { |
| 1184 DCHECK(key->IsPropertyName()); | 1185 DCHECK(key->IsPropertyName()); |
| (...skipping 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2794 DCHECK(kOSRBranchInstruction == br_instr); | 2795 DCHECK(kOSRBranchInstruction == br_instr); |
| 2795 | 2796 |
| 2796 DCHECK(interrupt_address == | 2797 DCHECK(interrupt_address == |
| 2797 isolate->builtins()->OnStackReplacement()->entry()); | 2798 isolate->builtins()->OnStackReplacement()->entry()); |
| 2798 return ON_STACK_REPLACEMENT; | 2799 return ON_STACK_REPLACEMENT; |
| 2799 } | 2800 } |
| 2800 | 2801 |
| 2801 } // namespace internal | 2802 } // namespace internal |
| 2802 } // namespace v8 | 2803 } // namespace v8 |
| 2803 #endif // V8_TARGET_ARCH_S390 | 2804 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |