| 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 : Runtime::kLoadLookupSlotInsideTypeof; | 1351 : Runtime::kLoadLookupSlotInsideTypeof; |
| 1352 __ CallRuntime(function_id); | 1352 __ CallRuntime(function_id); |
| 1353 __ Bind(&done); | 1353 __ Bind(&done); |
| 1354 context()->Plug(x0); | 1354 context()->Plug(x0); |
| 1355 break; | 1355 break; |
| 1356 } | 1356 } |
| 1357 } | 1357 } |
| 1358 } | 1358 } |
| 1359 | 1359 |
| 1360 | 1360 |
| 1361 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | |
| 1362 Comment cmnt(masm_, "[ RegExpLiteral"); | |
| 1363 __ Ldr(x3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | |
| 1364 __ Mov(x2, Smi::FromInt(expr->literal_index())); | |
| 1365 __ Mov(x1, Operand(expr->pattern())); | |
| 1366 __ Mov(x0, Smi::FromInt(expr->flags())); | |
| 1367 FastCloneRegExpStub stub(isolate()); | |
| 1368 __ CallStub(&stub); | |
| 1369 context()->Plug(x0); | |
| 1370 } | |
| 1371 | |
| 1372 | |
| 1373 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { | 1361 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { |
| 1374 Expression* expression = (property == NULL) ? NULL : property->value(); | 1362 Expression* expression = (property == NULL) ? NULL : property->value(); |
| 1375 if (expression == NULL) { | 1363 if (expression == NULL) { |
| 1376 __ LoadRoot(x10, Heap::kNullValueRootIndex); | 1364 __ LoadRoot(x10, Heap::kNullValueRootIndex); |
| 1377 PushOperand(x10); | 1365 PushOperand(x10); |
| 1378 } else { | 1366 } else { |
| 1379 VisitForStackValue(expression); | 1367 VisitForStackValue(expression); |
| 1380 if (NeedsHomeObject(expression)) { | 1368 if (NeedsHomeObject(expression)) { |
| 1381 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || | 1369 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || |
| 1382 property->kind() == ObjectLiteral::Property::SETTER); | 1370 property->kind() == ObjectLiteral::Property::SETTER); |
| (...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3883 } | 3871 } |
| 3884 | 3872 |
| 3885 return INTERRUPT; | 3873 return INTERRUPT; |
| 3886 } | 3874 } |
| 3887 | 3875 |
| 3888 | 3876 |
| 3889 } // namespace internal | 3877 } // namespace internal |
| 3890 } // namespace v8 | 3878 } // namespace v8 |
| 3891 | 3879 |
| 3892 #endif // V8_TARGET_ARCH_ARM64 | 3880 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |