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