Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 893533003: Revert "Make GCC happy again." and "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3795 matching lines...) Expand 10 before | Expand all | Expand 10 after
3806 __ ldr(r0, FieldMemOperand(r0, JSValue::kValueOffset), eq); 3806 __ ldr(r0, FieldMemOperand(r0, JSValue::kValueOffset), eq);
3807 3807
3808 __ bind(&done); 3808 __ bind(&done);
3809 context()->Plug(r0); 3809 context()->Plug(r0);
3810 } 3810 }
3811 3811
3812 3812
3813 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { 3813 void FullCodeGenerator::EmitDateField(CallRuntime* expr) {
3814 ZoneList<Expression*>* args = expr->arguments(); 3814 ZoneList<Expression*>* args = expr->arguments();
3815 DCHECK(args->length() == 2); 3815 DCHECK(args->length() == 2);
3816 DCHECK_NOT_NULL(args->at(1)->AsLiteral()); 3816 DCHECK_NE(NULL, args->at(1)->AsLiteral());
3817 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); 3817 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value()));
3818 3818
3819 VisitForAccumulatorValue(args->at(0)); // Load the object. 3819 VisitForAccumulatorValue(args->at(0)); // Load the object.
3820 3820
3821 Label runtime, done, not_date_object; 3821 Label runtime, done, not_date_object;
3822 Register object = r0; 3822 Register object = r0;
3823 Register result = r0; 3823 Register result = r0;
3824 Register scratch0 = r9; 3824 Register scratch0 = r9;
3825 Register scratch1 = r1; 3825 Register scratch1 = r1;
3826 3826
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
4154 __ pop(r1); 4154 __ pop(r1);
4155 __ pop(r2); 4155 __ pop(r2);
4156 __ CallStub(&stub); 4156 __ CallStub(&stub);
4157 context()->Plug(r0); 4157 context()->Plug(r0);
4158 } 4158 }
4159 4159
4160 4160
4161 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { 4161 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) {
4162 ZoneList<Expression*>* args = expr->arguments(); 4162 ZoneList<Expression*>* args = expr->arguments();
4163 DCHECK_EQ(2, args->length()); 4163 DCHECK_EQ(2, args->length());
4164 DCHECK_NOT_NULL(args->at(0)->AsLiteral()); 4164 DCHECK_NE(NULL, args->at(0)->AsLiteral());
4165 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value(); 4165 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value();
4166 4166
4167 Handle<FixedArray> jsfunction_result_caches( 4167 Handle<FixedArray> jsfunction_result_caches(
4168 isolate()->native_context()->jsfunction_result_caches()); 4168 isolate()->native_context()->jsfunction_result_caches());
4169 if (jsfunction_result_caches->length() <= cache_id) { 4169 if (jsfunction_result_caches->length() <= cache_id) {
4170 __ Abort(kAttemptToUseUndefinedCache); 4170 __ Abort(kAttemptToUseUndefinedCache);
4171 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); 4171 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex);
4172 context()->Plug(r0); 4172 context()->Plug(r0);
4173 return; 4173 return;
4174 } 4174 }
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
5406 5406
5407 DCHECK(interrupt_address == 5407 DCHECK(interrupt_address ==
5408 isolate->builtins()->OsrAfterStackCheck()->entry()); 5408 isolate->builtins()->OsrAfterStackCheck()->entry());
5409 return OSR_AFTER_STACK_CHECK; 5409 return OSR_AFTER_STACK_CHECK;
5410 } 5410 }
5411 5411
5412 5412
5413 } } // namespace v8::internal 5413 } } // namespace v8::internal
5414 5414
5415 #endif // V8_TARGET_ARCH_ARM 5415 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698