| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2024 case ClassLiteral::Property::GETTER: | 2024 case ClassLiteral::Property::GETTER: |
| 2025 PushOperand(Smi::FromInt(DONT_ENUM)); | 2025 PushOperand(Smi::FromInt(DONT_ENUM)); |
| 2026 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); | 2026 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); |
| 2027 break; | 2027 break; |
| 2028 | 2028 |
| 2029 case ClassLiteral::Property::SETTER: | 2029 case ClassLiteral::Property::SETTER: |
| 2030 PushOperand(Smi::FromInt(DONT_ENUM)); | 2030 PushOperand(Smi::FromInt(DONT_ENUM)); |
| 2031 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 2031 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
| 2032 break; | 2032 break; |
| 2033 | 2033 |
| 2034 case ClassLiteral::Property::FIELD: |
| 2034 default: | 2035 default: |
| 2035 UNREACHABLE(); | 2036 UNREACHABLE(); |
| 2036 } | 2037 } |
| 2037 } | 2038 } |
| 2038 } | 2039 } |
| 2039 | 2040 |
| 2040 | 2041 |
| 2041 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { | 2042 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
| 2042 PopOperand(r4); | 2043 PopOperand(r4); |
| 2043 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); | 2044 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), op).code(); |
| (...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3719 | 3720 |
| 3720 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 3721 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
| 3721 | 3722 |
| 3722 DCHECK(interrupt_address == | 3723 DCHECK(interrupt_address == |
| 3723 isolate->builtins()->OnStackReplacement()->entry()); | 3724 isolate->builtins()->OnStackReplacement()->entry()); |
| 3724 return ON_STACK_REPLACEMENT; | 3725 return ON_STACK_REPLACEMENT; |
| 3725 } | 3726 } |
| 3726 } // namespace internal | 3727 } // namespace internal |
| 3727 } // namespace v8 | 3728 } // namespace v8 |
| 3728 #endif // V8_TARGET_ARCH_PPC | 3729 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |