| 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/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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1231 DCHECK(!property->is_computed_name()); | 1231 DCHECK(!property->is_computed_name()); |
| 1232 if (property->IsCompileTimeValue()) continue; | 1232 if (property->IsCompileTimeValue()) continue; |
| 1233 | 1233 |
| 1234 Literal* key = property->key()->AsLiteral(); | 1234 Literal* key = property->key()->AsLiteral(); |
| 1235 Expression* value = property->value(); | 1235 Expression* value = property->value(); |
| 1236 if (!result_saved) { | 1236 if (!result_saved) { |
| 1237 PushOperand(r0); // Save result on stack | 1237 PushOperand(r0); // Save result on stack |
| 1238 result_saved = true; | 1238 result_saved = true; |
| 1239 } | 1239 } |
| 1240 switch (property->kind()) { | 1240 switch (property->kind()) { |
| 1241 case ObjectLiteral::Property::SPREAD: |
| 1241 case ObjectLiteral::Property::CONSTANT: | 1242 case ObjectLiteral::Property::CONSTANT: |
| 1242 UNREACHABLE(); | 1243 UNREACHABLE(); |
| 1243 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1244 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
| 1244 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); | 1245 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); |
| 1245 // Fall through. | 1246 // Fall through. |
| 1246 case ObjectLiteral::Property::COMPUTED: | 1247 case ObjectLiteral::Property::COMPUTED: |
| 1247 // It is safe to use [[Put]] here because the boilerplate already | 1248 // It is safe to use [[Put]] here because the boilerplate already |
| 1248 // contains computed properties with an uninitialized value. | 1249 // contains computed properties with an uninitialized value. |
| 1249 if (key->IsStringLiteral()) { | 1250 if (key->IsStringLiteral()) { |
| 1250 DCHECK(key->IsPropertyName()); | 1251 DCHECK(key->IsPropertyName()); |
| (...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2918 DCHECK(interrupt_address == | 2919 DCHECK(interrupt_address == |
| 2919 isolate->builtins()->OnStackReplacement()->entry()); | 2920 isolate->builtins()->OnStackReplacement()->entry()); |
| 2920 return ON_STACK_REPLACEMENT; | 2921 return ON_STACK_REPLACEMENT; |
| 2921 } | 2922 } |
| 2922 | 2923 |
| 2923 | 2924 |
| 2924 } // namespace internal | 2925 } // namespace internal |
| 2925 } // namespace v8 | 2926 } // namespace v8 |
| 2926 | 2927 |
| 2927 #endif // V8_TARGET_ARCH_ARM | 2928 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |