OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1982 case ClassLiteral::Property::GETTER: | 1982 case ClassLiteral::Property::GETTER: |
1983 PushOperand(Smi::FromInt(DONT_ENUM)); | 1983 PushOperand(Smi::FromInt(DONT_ENUM)); |
1984 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); | 1984 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); |
1985 break; | 1985 break; |
1986 | 1986 |
1987 case ClassLiteral::Property::SETTER: | 1987 case ClassLiteral::Property::SETTER: |
1988 PushOperand(Smi::FromInt(DONT_ENUM)); | 1988 PushOperand(Smi::FromInt(DONT_ENUM)); |
1989 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 1989 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
1990 break; | 1990 break; |
1991 | 1991 |
| 1992 case ClassLiteral::Property::FIELD: |
1992 default: | 1993 default: |
1993 UNREACHABLE(); | 1994 UNREACHABLE(); |
1994 } | 1995 } |
1995 } | 1996 } |
1996 } | 1997 } |
1997 | 1998 |
1998 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { | 1999 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
1999 PopOperand(r3); | 2000 PopOperand(r3); |
2000 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); | 2001 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); |
2001 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. | 2002 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. |
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3631 DCHECK(kOSRBranchInstruction == br_instr); | 3632 DCHECK(kOSRBranchInstruction == br_instr); |
3632 | 3633 |
3633 DCHECK(interrupt_address == | 3634 DCHECK(interrupt_address == |
3634 isolate->builtins()->OnStackReplacement()->entry()); | 3635 isolate->builtins()->OnStackReplacement()->entry()); |
3635 return ON_STACK_REPLACEMENT; | 3636 return ON_STACK_REPLACEMENT; |
3636 } | 3637 } |
3637 | 3638 |
3638 } // namespace internal | 3639 } // namespace internal |
3639 } // namespace v8 | 3640 } // namespace v8 |
3640 #endif // V8_TARGET_ARCH_S390 | 3641 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |