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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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/flag-definitions.h ('k') | src/full-codegen/arm64/full-codegen-arm64.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 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 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after
2019 case ClassLiteral::Property::GETTER: 2019 case ClassLiteral::Property::GETTER:
2020 PushOperand(Smi::FromInt(DONT_ENUM)); 2020 PushOperand(Smi::FromInt(DONT_ENUM));
2021 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); 2021 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked);
2022 break; 2022 break;
2023 2023
2024 case ClassLiteral::Property::SETTER: 2024 case ClassLiteral::Property::SETTER:
2025 PushOperand(Smi::FromInt(DONT_ENUM)); 2025 PushOperand(Smi::FromInt(DONT_ENUM));
2026 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); 2026 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
2027 break; 2027 break;
2028 2028
2029 case ClassLiteral::Property::FIELD:
2029 default: 2030 default:
2030 UNREACHABLE(); 2031 UNREACHABLE();
2031 } 2032 }
2032 } 2033 }
2033 } 2034 }
2034 2035
2035 2036
2036 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { 2037 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) {
2037 PopOperand(r1); 2038 PopOperand(r1);
2038 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); 2039 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code();
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
3797 DCHECK(interrupt_address == 3798 DCHECK(interrupt_address ==
3798 isolate->builtins()->OnStackReplacement()->entry()); 3799 isolate->builtins()->OnStackReplacement()->entry());
3799 return ON_STACK_REPLACEMENT; 3800 return ON_STACK_REPLACEMENT;
3800 } 3801 }
3801 3802
3802 3803
3803 } // namespace internal 3804 } // namespace internal
3804 } // namespace v8 3805 } // namespace v8
3805 3806
3806 #endif // V8_TARGET_ARCH_ARM 3807 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698