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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 ? Runtime::kLoadLookupSlot | 1366 ? Runtime::kLoadLookupSlot |
1367 : Runtime::kLoadLookupSlotInsideTypeof; | 1367 : Runtime::kLoadLookupSlotInsideTypeof; |
1368 __ CallRuntime(function_id); | 1368 __ CallRuntime(function_id); |
1369 __ bind(&done); | 1369 __ bind(&done); |
1370 context()->Plug(r0); | 1370 context()->Plug(r0); |
1371 } | 1371 } |
1372 } | 1372 } |
1373 } | 1373 } |
1374 | 1374 |
1375 | 1375 |
1376 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | |
1377 Comment cmnt(masm_, "[ RegExpLiteral"); | |
1378 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | |
1379 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); | |
1380 __ mov(r1, Operand(expr->pattern())); | |
1381 __ mov(r0, Operand(Smi::FromInt(expr->flags()))); | |
1382 FastCloneRegExpStub stub(isolate()); | |
1383 __ CallStub(&stub); | |
1384 context()->Plug(r0); | |
1385 } | |
1386 | |
1387 | |
1388 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { | 1376 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { |
1389 Expression* expression = (property == NULL) ? NULL : property->value(); | 1377 Expression* expression = (property == NULL) ? NULL : property->value(); |
1390 if (expression == NULL) { | 1378 if (expression == NULL) { |
1391 __ LoadRoot(r1, Heap::kNullValueRootIndex); | 1379 __ LoadRoot(r1, Heap::kNullValueRootIndex); |
1392 PushOperand(r1); | 1380 PushOperand(r1); |
1393 } else { | 1381 } else { |
1394 VisitForStackValue(expression); | 1382 VisitForStackValue(expression); |
1395 if (NeedsHomeObject(expression)) { | 1383 if (NeedsHomeObject(expression)) { |
1396 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || | 1384 DCHECK(property->kind() == ObjectLiteral::Property::GETTER || |
1397 property->kind() == ObjectLiteral::Property::SETTER); | 1385 property->kind() == ObjectLiteral::Property::SETTER); |
(...skipping 2477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3875 DCHECK(interrupt_address == | 3863 DCHECK(interrupt_address == |
3876 isolate->builtins()->OnStackReplacement()->entry()); | 3864 isolate->builtins()->OnStackReplacement()->entry()); |
3877 return ON_STACK_REPLACEMENT; | 3865 return ON_STACK_REPLACEMENT; |
3878 } | 3866 } |
3879 | 3867 |
3880 | 3868 |
3881 } // namespace internal | 3869 } // namespace internal |
3882 } // namespace v8 | 3870 } // namespace v8 |
3883 | 3871 |
3884 #endif // V8_TARGET_ARCH_ARM | 3872 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |