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 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; | 1206 int offset = property->kind() == ObjectLiteral::Property::GETTER ? 2 : 3; |
1207 EmitSetHomeObject(expression, offset, property->GetSlot()); | 1207 EmitSetHomeObject(expression, offset, property->GetSlot()); |
1208 } | 1208 } |
1209 } | 1209 } |
1210 } | 1210 } |
1211 | 1211 |
1212 | 1212 |
1213 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { | 1213 void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
1214 Comment cmnt(masm_, "[ ObjectLiteral"); | 1214 Comment cmnt(masm_, "[ ObjectLiteral"); |
1215 | 1215 |
1216 Handle<FixedArray> constant_properties = | 1216 Handle<BoilerplateDescription> constant_properties = |
1217 expr->GetOrBuildConstantProperties(isolate()); | 1217 expr->GetOrBuildConstantProperties(isolate()); |
1218 __ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1218 __ lw(a3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1219 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); | 1219 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
1220 __ li(a1, Operand(constant_properties)); | 1220 __ li(a1, Operand(constant_properties)); |
1221 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); | 1221 __ li(a0, Operand(Smi::FromInt(expr->ComputeFlags()))); |
1222 if (MustCreateObjectLiteralWithRuntime(expr)) { | 1222 if (MustCreateObjectLiteralWithRuntime(expr)) { |
1223 __ Push(a3, a2, a1, a0); | 1223 __ Push(a3, a2, a1, a0); |
1224 __ CallRuntime(Runtime::kCreateObjectLiteral); | 1224 __ CallRuntime(Runtime::kCreateObjectLiteral); |
1225 } else { | 1225 } else { |
1226 Callable callable = CodeFactory::FastCloneShallowObject( | 1226 Callable callable = CodeFactory::FastCloneShallowObject( |
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2869 reinterpret_cast<uint32_t>( | 2869 reinterpret_cast<uint32_t>( |
2870 isolate->builtins()->OnStackReplacement()->entry())); | 2870 isolate->builtins()->OnStackReplacement()->entry())); |
2871 return ON_STACK_REPLACEMENT; | 2871 return ON_STACK_REPLACEMENT; |
2872 } | 2872 } |
2873 | 2873 |
2874 | 2874 |
2875 } // namespace internal | 2875 } // namespace internal |
2876 } // namespace v8 | 2876 } // namespace v8 |
2877 | 2877 |
2878 #endif // V8_TARGET_ARCH_MIPS | 2878 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |