OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 | 1343 |
1344 void FullCodeGenerator::EmitLoadHomeObject(SuperReference* expr) { | 1344 void FullCodeGenerator::EmitLoadHomeObject(SuperReference* expr) { |
1345 Comment cnmt(masm_, "[ SuperReference "); | 1345 Comment cnmt(masm_, "[ SuperReference "); |
1346 | 1346 |
1347 __ ldr(LoadDescriptor::ReceiverRegister(), | 1347 __ ldr(LoadDescriptor::ReceiverRegister(), |
1348 MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1348 MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1349 | 1349 |
1350 Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol()); | 1350 Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol()); |
1351 __ Mov(LoadDescriptor::NameRegister(), Operand(home_object_symbol)); | 1351 __ Mov(LoadDescriptor::NameRegister(), Operand(home_object_symbol)); |
1352 | 1352 |
1353 CallLoadIC(NOT_CONTEXTUAL, expr->HomeObjectFeedbackId()); | 1353 if (FLAG_vector_ics) { |
| 1354 __ Mov(VectorLoadICDescriptor::SlotRegister(), |
| 1355 Smi::FromInt(expr->HomeObjectFeedbackSlot())); |
| 1356 CallLoadIC(NOT_CONTEXTUAL); |
| 1357 } else { |
| 1358 CallLoadIC(NOT_CONTEXTUAL, expr->HomeObjectFeedbackId()); |
| 1359 } |
1354 | 1360 |
1355 __ Mov(x10, Operand(isolate()->factory()->undefined_value())); | 1361 __ Mov(x10, Operand(isolate()->factory()->undefined_value())); |
1356 __ cmp(x0, x10); | 1362 __ cmp(x0, x10); |
1357 Label done; | 1363 Label done; |
1358 __ b(&done, ne); | 1364 __ b(&done, ne); |
1359 __ CallRuntime(Runtime::kThrowNonMethodError, 0); | 1365 __ CallRuntime(Runtime::kThrowNonMethodError, 0); |
1360 __ bind(&done); | 1366 __ bind(&done); |
1361 } | 1367 } |
1362 | 1368 |
1363 | 1369 |
(...skipping 3763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5127 return previous_; | 5133 return previous_; |
5128 } | 5134 } |
5129 | 5135 |
5130 | 5136 |
5131 #undef __ | 5137 #undef __ |
5132 | 5138 |
5133 | 5139 |
5134 } } // namespace v8::internal | 5140 } } // namespace v8::internal |
5135 | 5141 |
5136 #endif // V8_TARGET_ARCH_ARM64 | 5142 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |