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_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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; | 1208 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; |
1209 EmitSetHomeObject(expression, offset, property->GetSlot()); | 1209 EmitSetHomeObject(expression, offset, property->GetSlot()); |
1210 } | 1210 } |
1211 } | 1211 } |
1212 } | 1212 } |
1213 | 1213 |
1214 | 1214 |
1215 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { | 1215 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
1216 Comment cmnt(masm_, "[ ObjectLiteral"); | 1216 Comment cmnt(masm_, "[ ObjectLiteral"); |
1217 | 1217 |
1218 Handle<FixedArray> constant_properties = | 1218 Handle<BoilerplateDescription> constant_properties = |
1219 expr->GetOrBuildConstantProperties(isolate()); | 1219 expr->GetOrBuildConstantProperties(isolate()); |
1220 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1220 __ ld(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1221 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); | 1221 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
1222 __ li(a1, Operand(constant_properties)); | 1222 __ li(a1, Operand(constant_properties)); |
1223 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); | 1223 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); |
1224 if (MustCreateObjectLiteralWithRuntime(expr)) { | 1224 if (MustCreateObjectLiteralWithRuntime(expr)) { |
1225 __ Push(a3, a2, a1, a0); | 1225 __ Push(a3, a2, a1, a0); |
1226 __ CallRuntime(Runtime::kCreateObjectLiteral); | 1226 __ CallRuntime(Runtime::kCreateObjectLiteral); |
1227 } else { | 1227 } else { |
1228 Callable callable = CodeFactory::FastCloneShallowObject( | 1228 Callable callable = CodeFactory::FastCloneShallowObject( |
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 reinterpret_cast<uint64_t>( | 2878 reinterpret_cast<uint64_t>( |
2879 isolate->builtins()->OnStackReplacement()->entry())); | 2879 isolate->builtins()->OnStackReplacement()->entry())); |
2880 return ON_STACK_REPLACEMENT; | 2880 return ON_STACK_REPLACEMENT; |
2881 } | 2881 } |
2882 | 2882 |
2883 | 2883 |
2884 } // namespace internal | 2884 } // namespace internal |
2885 } // namespace v8 | 2885 } // namespace v8 |
2886 | 2886 |
2887 #endif // V8_TARGET_ARCH_MIPS64 | 2887 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |