| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 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 3800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3811 __ ldr(r0, FieldMemOperand(r0, JSValue::kValueOffset), eq); | 3811 __ ldr(r0, FieldMemOperand(r0, JSValue::kValueOffset), eq); |
| 3812 | 3812 |
| 3813 __ bind(&done); | 3813 __ bind(&done); |
| 3814 context()->Plug(r0); | 3814 context()->Plug(r0); |
| 3815 } | 3815 } |
| 3816 | 3816 |
| 3817 | 3817 |
| 3818 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { | 3818 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { |
| 3819 ZoneList<Expression*>* args = expr->arguments(); | 3819 ZoneList<Expression*>* args = expr->arguments(); |
| 3820 DCHECK(args->length() == 2); | 3820 DCHECK(args->length() == 2); |
| 3821 DCHECK_NE(NULL, args->at(1)->AsLiteral()); | 3821 DCHECK(args->at(1)->AsLiteral()); |
| 3822 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); | 3822 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); |
| 3823 | 3823 |
| 3824 VisitForAccumulatorValue(args->at(0)); // Load the object. | 3824 VisitForAccumulatorValue(args->at(0)); // Load the object. |
| 3825 | 3825 |
| 3826 Label runtime, done, not_date_object; | 3826 Label runtime, done, not_date_object; |
| 3827 Register object = r0; | 3827 Register object = r0; |
| 3828 Register result = r0; | 3828 Register result = r0; |
| 3829 Register scratch0 = r9; | 3829 Register scratch0 = r9; |
| 3830 Register scratch1 = r1; | 3830 Register scratch1 = r1; |
| 3831 | 3831 |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4159 __ pop(r1); | 4159 __ pop(r1); |
| 4160 __ pop(r2); | 4160 __ pop(r2); |
| 4161 __ CallStub(&stub); | 4161 __ CallStub(&stub); |
| 4162 context()->Plug(r0); | 4162 context()->Plug(r0); |
| 4163 } | 4163 } |
| 4164 | 4164 |
| 4165 | 4165 |
| 4166 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { | 4166 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { |
| 4167 ZoneList<Expression*>* args = expr->arguments(); | 4167 ZoneList<Expression*>* args = expr->arguments(); |
| 4168 DCHECK_EQ(2, args->length()); | 4168 DCHECK_EQ(2, args->length()); |
| 4169 DCHECK_NE(NULL, args->at(0)->AsLiteral()); | 4169 DCHECK(args->at(0)->AsLiteral()); |
| 4170 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value(); | 4170 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value(); |
| 4171 | 4171 |
| 4172 Handle<FixedArray> jsfunction_result_caches( | 4172 Handle<FixedArray> jsfunction_result_caches( |
| 4173 isolate()->native_context()->jsfunction_result_caches()); | 4173 isolate()->native_context()->jsfunction_result_caches()); |
| 4174 if (jsfunction_result_caches->length() <= cache_id) { | 4174 if (jsfunction_result_caches->length() <= cache_id) { |
| 4175 __ Abort(kAttemptToUseUndefinedCache); | 4175 __ Abort(kAttemptToUseUndefinedCache); |
| 4176 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); | 4176 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
| 4177 context()->Plug(r0); | 4177 context()->Plug(r0); |
| 4178 return; | 4178 return; |
| 4179 } | 4179 } |
| (...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5411 | 5411 |
| 5412 DCHECK(interrupt_address == | 5412 DCHECK(interrupt_address == |
| 5413 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5413 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5414 return OSR_AFTER_STACK_CHECK; | 5414 return OSR_AFTER_STACK_CHECK; |
| 5415 } | 5415 } |
| 5416 | 5416 |
| 5417 | 5417 |
| 5418 } } // namespace v8::internal | 5418 } } // namespace v8::internal |
| 5419 | 5419 |
| 5420 #endif // V8_TARGET_ARCH_ARM | 5420 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |