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

Side by Side Diff: src/full-codegen/x64/full-codegen-x64.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/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.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_X64 5 #if V8_TARGET_ARCH_X64
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 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1919 case ClassLiteral::Property::GETTER: 1919 case ClassLiteral::Property::GETTER:
1920 PushOperand(Smi::FromInt(DONT_ENUM)); 1920 PushOperand(Smi::FromInt(DONT_ENUM));
1921 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); 1921 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked);
1922 break; 1922 break;
1923 1923
1924 case ClassLiteral::Property::SETTER: 1924 case ClassLiteral::Property::SETTER:
1925 PushOperand(Smi::FromInt(DONT_ENUM)); 1925 PushOperand(Smi::FromInt(DONT_ENUM));
1926 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); 1926 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
1927 break; 1927 break;
1928 1928
1929 case ClassLiteral::Property::FIELD:
1929 default: 1930 default:
1930 UNREACHABLE(); 1931 UNREACHABLE();
1931 } 1932 }
1932 } 1933 }
1933 } 1934 }
1934 1935
1935 1936
1936 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { 1937 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) {
1937 PopOperand(rdx); 1938 PopOperand(rdx);
1938 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); 1939 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code();
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after
3617 DCHECK_EQ( 3618 DCHECK_EQ(
3618 isolate->builtins()->OnStackReplacement()->entry(), 3619 isolate->builtins()->OnStackReplacement()->entry(),
3619 Assembler::target_address_at(call_target_address, unoptimized_code)); 3620 Assembler::target_address_at(call_target_address, unoptimized_code));
3620 return ON_STACK_REPLACEMENT; 3621 return ON_STACK_REPLACEMENT;
3621 } 3622 }
3622 3623
3623 } // namespace internal 3624 } // namespace internal
3624 } // namespace v8 3625 } // namespace v8
3625 3626
3626 #endif // V8_TARGET_ARCH_X64 3627 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/s390/full-codegen-s390.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698