| 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/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 } | 1457 } |
| 1458 } | 1458 } |
| 1459 } | 1459 } |
| 1460 | 1460 |
| 1461 | 1461 |
| 1462 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | 1462 void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
| 1463 Comment cmnt(masm_, "[ RegExpLiteral"); | 1463 Comment cmnt(masm_, "[ RegExpLiteral"); |
| 1464 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1464 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 1465 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); | 1465 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); |
| 1466 __ mov(r1, Operand(expr->pattern())); | 1466 __ mov(r1, Operand(expr->pattern())); |
| 1467 __ mov(r0, Operand(expr->flags())); | 1467 __ mov(r0, Operand(Smi::FromInt(expr->flags()))); |
| 1468 FastCloneRegExpStub stub(isolate()); | 1468 FastCloneRegExpStub stub(isolate()); |
| 1469 __ CallStub(&stub); | 1469 __ CallStub(&stub); |
| 1470 context()->Plug(r0); | 1470 context()->Plug(r0); |
| 1471 } | 1471 } |
| 1472 | 1472 |
| 1473 | 1473 |
| 1474 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { | 1474 void FullCodeGenerator::EmitAccessor(ObjectLiteralProperty* property) { |
| 1475 Expression* expression = (property == NULL) ? NULL : property->value(); | 1475 Expression* expression = (property == NULL) ? NULL : property->value(); |
| 1476 if (expression == NULL) { | 1476 if (expression == NULL) { |
| 1477 __ LoadRoot(r1, Heap::kNullValueRootIndex); | 1477 __ LoadRoot(r1, Heap::kNullValueRootIndex); |
| (...skipping 3533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5011 DCHECK(interrupt_address == | 5011 DCHECK(interrupt_address == |
| 5012 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5012 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5013 return OSR_AFTER_STACK_CHECK; | 5013 return OSR_AFTER_STACK_CHECK; |
| 5014 } | 5014 } |
| 5015 | 5015 |
| 5016 | 5016 |
| 5017 } // namespace internal | 5017 } // namespace internal |
| 5018 } // namespace v8 | 5018 } // namespace v8 |
| 5019 | 5019 |
| 5020 #endif // V8_TARGET_ARCH_ARM | 5020 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |