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

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

Issue 2315733003: Class fields, part 1 (parsing and infrastructure) (Closed)
Patch Set: whitespace Created 4 years, 3 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
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1920 case ClassLiteral::Property::GETTER: 1920 case ClassLiteral::Property::GETTER:
1921 PushOperand(Smi::FromInt(DONT_ENUM)); 1921 PushOperand(Smi::FromInt(DONT_ENUM));
1922 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); 1922 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked);
1923 break; 1923 break;
1924 1924
1925 case ClassLiteral::Property::SETTER: 1925 case ClassLiteral::Property::SETTER:
1926 PushOperand(Smi::FromInt(DONT_ENUM)); 1926 PushOperand(Smi::FromInt(DONT_ENUM));
1927 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); 1927 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
1928 break; 1928 break;
1929 1929
1930 case ClassLiteral::Property::FIELD:
1930 default: 1931 default:
1931 UNREACHABLE(); 1932 UNREACHABLE();
1932 } 1933 }
1933 } 1934 }
1934 } 1935 }
1935 1936
1936 1937
1937 void FullCodeGenerator::EmitAssignment(Expression* expr, 1938 void FullCodeGenerator::EmitAssignment(Expression* expr,
1938 FeedbackVectorSlot slot) { 1939 FeedbackVectorSlot slot) {
1939 DCHECK(expr->IsValidReferenceExpressionOrThis()); 1940 DCHECK(expr->IsValidReferenceExpressionOrThis());
(...skipping 1867 matching lines...) Expand 10 before | Expand all | Expand 10 after
3807 } 3808 }
3808 3809
3809 return INTERRUPT; 3810 return INTERRUPT;
3810 } 3811 }
3811 3812
3812 3813
3813 } // namespace internal 3814 } // namespace internal
3814 } // namespace v8 3815 } // namespace v8
3815 3816
3816 #endif // V8_TARGET_ARCH_ARM64 3817 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698