| 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 2078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2089 __ LoadRoot(a4, Heap::kEmptyFixedArrayRootIndex); | 2089 __ LoadRoot(a4, Heap::kEmptyFixedArrayRootIndex); |
| 2090 __ sd(a1, FieldMemOperand(v0, HeapObject::kMapOffset)); | 2090 __ sd(a1, FieldMemOperand(v0, HeapObject::kMapOffset)); |
| 2091 __ sd(a4, FieldMemOperand(v0, JSObject::kPropertiesOffset)); | 2091 __ sd(a4, FieldMemOperand(v0, JSObject::kPropertiesOffset)); |
| 2092 __ sd(a4, FieldMemOperand(v0, JSObject::kElementsOffset)); | 2092 __ sd(a4, FieldMemOperand(v0, JSObject::kElementsOffset)); |
| 2093 __ sd(a2, FieldMemOperand(v0, JSIteratorResult::kValueOffset)); | 2093 __ sd(a2, FieldMemOperand(v0, JSIteratorResult::kValueOffset)); |
| 2094 __ sd(a3, FieldMemOperand(v0, JSIteratorResult::kDoneOffset)); | 2094 __ sd(a3, FieldMemOperand(v0, JSIteratorResult::kDoneOffset)); |
| 2095 STATIC_ASSERT(JSIteratorResult::kSize == 5 * kPointerSize); | 2095 STATIC_ASSERT(JSIteratorResult::kSize == 5 * kPointerSize); |
| 2096 } | 2096 } |
| 2097 | 2097 |
| 2098 | 2098 |
| 2099 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { | |
| 2100 SetExpressionPosition(prop); | |
| 2101 Literal* key = prop->key()->AsLiteral(); | |
| 2102 DCHECK(!prop->IsSuperAccess()); | |
| 2103 | |
| 2104 __ li(LoadDescriptor::NameRegister(), Operand(key->value())); | |
| 2105 __ li(LoadDescriptor::SlotRegister(), | |
| 2106 Operand(SmiFromSlot(prop->PropertyFeedbackSlot()))); | |
| 2107 CallLoadIC(NOT_INSIDE_TYPEOF); | |
| 2108 } | |
| 2109 | |
| 2110 | |
| 2111 void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, | 2099 void FullCodeGenerator::EmitInlineSmiBinaryOp(BinaryOperation* expr, |
| 2112 Token::Value op, | 2100 Token::Value op, |
| 2113 Expression* left_expr, | 2101 Expression* left_expr, |
| 2114 Expression* right_expr) { | 2102 Expression* right_expr) { |
| 2115 Label done, smi_case, stub_call; | 2103 Label done, smi_case, stub_call; |
| 2116 | 2104 |
| 2117 Register scratch1 = a2; | 2105 Register scratch1 = a2; |
| 2118 Register scratch2 = a3; | 2106 Register scratch2 = a3; |
| 2119 | 2107 |
| 2120 // Get the arguments. | 2108 // Get the arguments. |
| (...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4268 reinterpret_cast<uint64_t>( | 4256 reinterpret_cast<uint64_t>( |
| 4269 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4257 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4270 return OSR_AFTER_STACK_CHECK; | 4258 return OSR_AFTER_STACK_CHECK; |
| 4271 } | 4259 } |
| 4272 | 4260 |
| 4273 | 4261 |
| 4274 } // namespace internal | 4262 } // namespace internal |
| 4275 } // namespace v8 | 4263 } // namespace v8 |
| 4276 | 4264 |
| 4277 #endif // V8_TARGET_ARCH_MIPS64 | 4265 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |