| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 DCHECK(!property->is_computed_name()); | 1154 DCHECK(!property->is_computed_name()); |
| 1155 if (property->IsCompileTimeValue()) continue; | 1155 if (property->IsCompileTimeValue()) continue; |
| 1156 | 1156 |
| 1157 Literal* key = property->key()->AsLiteral(); | 1157 Literal* key = property->key()->AsLiteral(); |
| 1158 Expression* value = property->value(); | 1158 Expression* value = property->value(); |
| 1159 if (!result_saved) { | 1159 if (!result_saved) { |
| 1160 PushOperand(eax); // Save result on the stack | 1160 PushOperand(eax); // Save result on the stack |
| 1161 result_saved = true; | 1161 result_saved = true; |
| 1162 } | 1162 } |
| 1163 switch (property->kind()) { | 1163 switch (property->kind()) { |
| 1164 case ObjectLiteral::Property::SPREAD: |
| 1164 case ObjectLiteral::Property::CONSTANT: | 1165 case ObjectLiteral::Property::CONSTANT: |
| 1165 UNREACHABLE(); | 1166 UNREACHABLE(); |
| 1166 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1167 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
| 1167 DCHECK(!CompileTimeValue::IsCompileTimeValue(value)); | 1168 DCHECK(!CompileTimeValue::IsCompileTimeValue(value)); |
| 1168 // Fall through. | 1169 // Fall through. |
| 1169 case ObjectLiteral::Property::COMPUTED: | 1170 case ObjectLiteral::Property::COMPUTED: |
| 1170 // It is safe to use [[Put]] here because the boilerplate already | 1171 // It is safe to use [[Put]] here because the boilerplate already |
| 1171 // contains computed properties with an uninitialized value. | 1172 // contains computed properties with an uninitialized value. |
| 1172 if (key->IsStringLiteral()) { | 1173 if (key->IsStringLiteral()) { |
| 1173 DCHECK(key->IsPropertyName()); | 1174 DCHECK(key->IsPropertyName()); |
| (...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2781 isolate->builtins()->OnStackReplacement()->entry(), | 2782 isolate->builtins()->OnStackReplacement()->entry(), |
| 2782 Assembler::target_address_at(call_target_address, unoptimized_code)); | 2783 Assembler::target_address_at(call_target_address, unoptimized_code)); |
| 2783 return ON_STACK_REPLACEMENT; | 2784 return ON_STACK_REPLACEMENT; |
| 2784 } | 2785 } |
| 2785 | 2786 |
| 2786 | 2787 |
| 2787 } // namespace internal | 2788 } // namespace internal |
| 2788 } // namespace v8 | 2789 } // namespace v8 |
| 2789 | 2790 |
| 2790 #endif // V8_TARGET_ARCH_X87 | 2791 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |