| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 DCHECK(!property->is_computed_name()); | 1202 DCHECK(!property->is_computed_name()); |
| 1203 if (property->IsCompileTimeValue()) continue; | 1203 if (property->IsCompileTimeValue()) continue; |
| 1204 | 1204 |
| 1205 Literal* key = property->key()->AsLiteral(); | 1205 Literal* key = property->key()->AsLiteral(); |
| 1206 Expression* value = property->value(); | 1206 Expression* value = property->value(); |
| 1207 if (!result_saved) { | 1207 if (!result_saved) { |
| 1208 PushOperand(r3); // Save result on stack | 1208 PushOperand(r3); // Save result on stack |
| 1209 result_saved = true; | 1209 result_saved = true; |
| 1210 } | 1210 } |
| 1211 switch (property->kind()) { | 1211 switch (property->kind()) { |
| 1212 case ObjectLiteral::Property::SPREAD: |
| 1212 case ObjectLiteral::Property::CONSTANT: | 1213 case ObjectLiteral::Property::CONSTANT: |
| 1213 UNREACHABLE(); | 1214 UNREACHABLE(); |
| 1214 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1215 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
| 1215 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); | 1216 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); |
| 1216 // Fall through. | 1217 // Fall through. |
| 1217 case ObjectLiteral::Property::COMPUTED: | 1218 case ObjectLiteral::Property::COMPUTED: |
| 1218 // It is safe to use [[Put]] here because the boilerplate already | 1219 // It is safe to use [[Put]] here because the boilerplate already |
| 1219 // contains computed properties with an uninitialized value. | 1220 // contains computed properties with an uninitialized value. |
| 1220 if (key->IsStringLiteral()) { | 1221 if (key->IsStringLiteral()) { |
| 1221 DCHECK(key->IsPropertyName()); | 1222 DCHECK(key->IsPropertyName()); |
| (...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2857 | 2858 |
| 2858 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 2859 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
| 2859 | 2860 |
| 2860 DCHECK(interrupt_address == | 2861 DCHECK(interrupt_address == |
| 2861 isolate->builtins()->OnStackReplacement()->entry()); | 2862 isolate->builtins()->OnStackReplacement()->entry()); |
| 2862 return ON_STACK_REPLACEMENT; | 2863 return ON_STACK_REPLACEMENT; |
| 2863 } | 2864 } |
| 2864 } // namespace internal | 2865 } // namespace internal |
| 2865 } // namespace v8 | 2866 } // namespace v8 |
| 2866 #endif // V8_TARGET_ARCH_PPC | 2867 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |