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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...skipping 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2022 case ClassLiteral::Property::GETTER: | 2022 case ClassLiteral::Property::GETTER: |
2023 PushOperand(Smi::FromInt(DONT_ENUM)); | 2023 PushOperand(Smi::FromInt(DONT_ENUM)); |
2024 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); | 2024 CallRuntimeWithOperands(Runtime::kDefineGetterPropertyUnchecked); |
2025 break; | 2025 break; |
2026 | 2026 |
2027 case ClassLiteral::Property::SETTER: | 2027 case ClassLiteral::Property::SETTER: |
2028 PushOperand(Smi::FromInt(DONT_ENUM)); | 2028 PushOperand(Smi::FromInt(DONT_ENUM)); |
2029 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 2029 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
2030 break; | 2030 break; |
2031 | 2031 |
| 2032 case ClassLiteral::Property::FIELD: |
2032 default: | 2033 default: |
2033 UNREACHABLE(); | 2034 UNREACHABLE(); |
2034 } | 2035 } |
2035 } | 2036 } |
2036 } | 2037 } |
2037 | 2038 |
2038 | 2039 |
2039 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { | 2040 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |
2040 __ mov(a0, result_register()); | 2041 __ mov(a0, result_register()); |
2041 PopOperand(a1); | 2042 PopOperand(a1); |
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3738 reinterpret_cast<uint32_t>( | 3739 reinterpret_cast<uint32_t>( |
3739 isolate->builtins()->OnStackReplacement()->entry())); | 3740 isolate->builtins()->OnStackReplacement()->entry())); |
3740 return ON_STACK_REPLACEMENT; | 3741 return ON_STACK_REPLACEMENT; |
3741 } | 3742 } |
3742 | 3743 |
3743 | 3744 |
3744 } // namespace internal | 3745 } // namespace internal |
3745 } // namespace v8 | 3746 } // namespace v8 |
3746 | 3747 |
3747 #endif // V8_TARGET_ARCH_MIPS | 3748 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |