Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.cc

Issue 2315733003: Class fields, part 1 (parsing and infrastructure) (Closed)
Patch Set: whitespace Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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
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 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after
3745 reinterpret_cast<uint64_t>( 3746 reinterpret_cast<uint64_t>(
3746 isolate->builtins()->OnStackReplacement()->entry())); 3747 isolate->builtins()->OnStackReplacement()->entry()));
3747 return ON_STACK_REPLACEMENT; 3748 return ON_STACK_REPLACEMENT;
3748 } 3749 }
3749 3750
3750 3751
3751 } // namespace internal 3752 } // namespace internal
3752 } // namespace v8 3753 } // namespace v8
3753 3754
3754 #endif // V8_TARGET_ARCH_MIPS64 3755 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698