OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |