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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.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
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_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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698