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

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

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow dchecks. 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
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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 3782 matching lines...) Expand 10 before | Expand all | Expand 10 after
3793 __ lw(v0, FieldMemOperand(v0, JSValue::kValueOffset)); 3793 __ lw(v0, FieldMemOperand(v0, JSValue::kValueOffset));
3794 3794
3795 __ bind(&done); 3795 __ bind(&done);
3796 context()->Plug(v0); 3796 context()->Plug(v0);
3797 } 3797 }
3798 3798
3799 3799
3800 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { 3800 void FullCodeGenerator::EmitDateField(CallRuntime* expr) {
3801 ZoneList<Expression*>* args = expr->arguments(); 3801 ZoneList<Expression*>* args = expr->arguments();
3802 DCHECK(args->length() == 2); 3802 DCHECK(args->length() == 2);
3803 DCHECK_NE(NULL, args->at(1)->AsLiteral()); 3803 DCHECK(args->at(1)->AsLiteral());
3804 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); 3804 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value()));
3805 3805
3806 VisitForAccumulatorValue(args->at(0)); // Load the object. 3806 VisitForAccumulatorValue(args->at(0)); // Load the object.
3807 3807
3808 Label runtime, done, not_date_object; 3808 Label runtime, done, not_date_object;
3809 Register object = v0; 3809 Register object = v0;
3810 Register result = v0; 3810 Register result = v0;
3811 Register scratch0 = t5; 3811 Register scratch0 = t5;
3812 Register scratch1 = a1; 3812 Register scratch1 = a1;
3813 3813
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
4159 __ pop(a2); 4159 __ pop(a2);
4160 __ CallStub(&stub); 4160 __ CallStub(&stub);
4161 context()->Plug(v0); 4161 context()->Plug(v0);
4162 } 4162 }
4163 4163
4164 4164
4165 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { 4165 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) {
4166 ZoneList<Expression*>* args = expr->arguments(); 4166 ZoneList<Expression*>* args = expr->arguments();
4167 DCHECK_EQ(2, args->length()); 4167 DCHECK_EQ(2, args->length());
4168 4168
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(v0, Heap::kUndefinedValueRootIndex); 4176 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
4177 context()->Plug(v0); 4177 context()->Plug(v0);
4178 return; 4178 return;
4179 } 4179 }
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
5349 Assembler::target_address_at(pc_immediate_load_address)) == 5349 Assembler::target_address_at(pc_immediate_load_address)) ==
5350 reinterpret_cast<uint32_t>( 5350 reinterpret_cast<uint32_t>(
5351 isolate->builtins()->OsrAfterStackCheck()->entry())); 5351 isolate->builtins()->OsrAfterStackCheck()->entry()));
5352 return OSR_AFTER_STACK_CHECK; 5352 return OSR_AFTER_STACK_CHECK;
5353 } 5353 }
5354 5354
5355 5355
5356 } } // namespace v8::internal 5356 } } // namespace v8::internal
5357 5357
5358 #endif // V8_TARGET_ARCH_MIPS 5358 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« src/jsregexp.cc ('K') | « src/log.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698