Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.cc

Issue 2606833002: [ESnext] Implement Object spread (Closed)
Patch Set: fix build Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 DCHECK(!property->is_computed_name()); 1218 DCHECK(!property->is_computed_name());
1219 if (property->IsCompileTimeValue()) continue; 1219 if (property->IsCompileTimeValue()) continue;
1220 1220
1221 Literal* key = property->key()->AsLiteral(); 1221 Literal* key = property->key()->AsLiteral();
1222 Expression* value = property->value(); 1222 Expression* value = property->value();
1223 if (!result_saved) { 1223 if (!result_saved) {
1224 PushOperand(x0); // Save result on stack 1224 PushOperand(x0); // Save result on stack
1225 result_saved = true; 1225 result_saved = true;
1226 } 1226 }
1227 switch (property->kind()) { 1227 switch (property->kind()) {
1228 case ObjectLiteral::Property::SPREAD:
1228 case ObjectLiteral::Property::CONSTANT: 1229 case ObjectLiteral::Property::CONSTANT:
1229 UNREACHABLE(); 1230 UNREACHABLE();
1230 case ObjectLiteral::Property::MATERIALIZED_LITERAL: 1231 case ObjectLiteral::Property::MATERIALIZED_LITERAL:
1231 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); 1232 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value()));
1232 // Fall through. 1233 // Fall through.
1233 case ObjectLiteral::Property::COMPUTED: 1234 case ObjectLiteral::Property::COMPUTED:
1234 // It is safe to use [[Put]] here because the boilerplate already 1235 // It is safe to use [[Put]] here because the boilerplate already
1235 // contains computed properties with an uninitialized value. 1236 // contains computed properties with an uninitialized value.
1236 if (key->IsStringLiteral()) { 1237 if (key->IsStringLiteral()) {
1237 DCHECK(key->IsPropertyName()); 1238 DCHECK(key->IsPropertyName());
(...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after
2919 } 2920 }
2920 2921
2921 return INTERRUPT; 2922 return INTERRUPT;
2922 } 2923 }
2923 2924
2924 2925
2925 } // namespace internal 2926 } // namespace internal
2926 } // namespace v8 2927 } // namespace v8
2927 2928
2928 #endif // V8_TARGET_ARCH_ARM64 2929 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698