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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 | 1919 |
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 |
| 1930 case ClassLiteral::Property::FIELD: |
| 1931 UNREACHABLE(); |
| 1932 break; |
1929 } | 1933 } |
1930 } | 1934 } |
1931 } | 1935 } |
1932 | 1936 |
1933 | 1937 |
1934 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { | 1938 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
1935 PopOperand(edx); | 1939 PopOperand(edx); |
1936 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); | 1940 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); |
1937 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. | 1941 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. |
1938 CallIC(code, expr->BinaryOperationFeedbackId()); | 1942 CallIC(code, expr->BinaryOperationFeedbackId()); |
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3619 isolate->builtins()->OnStackReplacement()->entry(), | 3623 isolate->builtins()->OnStackReplacement()->entry(), |
3620 Assembler::target_address_at(call_target_address, unoptimized_code)); | 3624 Assembler::target_address_at(call_target_address, unoptimized_code)); |
3621 return ON_STACK_REPLACEMENT; | 3625 return ON_STACK_REPLACEMENT; |
3622 } | 3626 } |
3623 | 3627 |
3624 | 3628 |
3625 } // namespace internal | 3629 } // namespace internal |
3626 } // namespace v8 | 3630 } // namespace v8 |
3627 | 3631 |
3628 #endif // V8_TARGET_ARCH_X87 | 3632 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |