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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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
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_IA32 5 #if V8_TARGET_ARCH_IA32
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 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 1927
1928 case ClassLiteral::Property::GETTER: 1928 case ClassLiteral::Property::GETTER:
1929 PushOperand(Smi::FromInt(DONT_ENUM)); 1929 PushOperand(Smi::FromInt(DONT_ENUM));
1930 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); 1930 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked);
1931 break; 1931 break;
1932 1932
1933 case ClassLiteral::Property::SETTER: 1933 case ClassLiteral::Property::SETTER:
1934 PushOperand(Smi::FromInt(DONT_ENUM)); 1934 PushOperand(Smi::FromInt(DONT_ENUM));
1935 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); 1935 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked);
1936 break; 1936 break;
1937
1938 case ClassLiteral::Property::FIELD:
1939 UNREACHABLE();
1940 break;
1937 } 1941 }
1938 } 1942 }
1939 } 1943 }
1940 1944
1941 1945
1942 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { 1946 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) {
1943 PopOperand(edx); 1947 PopOperand(edx);
1944 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); 1948 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code();
1945 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. 1949 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code.
1946 CallIC(code, expr->BinaryOperationFeedbackId()); 1950 CallIC(code, expr->BinaryOperationFeedbackId());
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
3627 isolate->builtins()->OnStackReplacement()->entry(), 3631 isolate->builtins()->OnStackReplacement()->entry(),
3628 Assembler::target_address_at(call_target_address, unoptimized_code)); 3632 Assembler::target_address_at(call_target_address, unoptimized_code));
3629 return ON_STACK_REPLACEMENT; 3633 return ON_STACK_REPLACEMENT;
3630 } 3634 }
3631 3635
3632 3636
3633 } // namespace internal 3637 } // namespace internal
3634 } // namespace v8 3638 } // namespace v8
3635 3639
3636 #endif // V8_TARGET_ARCH_IA32 3640 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698