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

Side by Side Diff: src/mips64/full-codegen-mips64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 3781 matching lines...) Expand 10 before | Expand all | Expand 10 after
3792 __ ld(v0, FieldMemOperand(v0, JSValue::kValueOffset)); 3792 __ ld(v0, FieldMemOperand(v0, JSValue::kValueOffset));
3793 3793
3794 __ bind(&done); 3794 __ bind(&done);
3795 context()->Plug(v0); 3795 context()->Plug(v0);
3796 } 3796 }
3797 3797
3798 3798
3799 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { 3799 void FullCodeGenerator::EmitDateField(CallRuntime* expr) {
3800 ZoneList<Expression*>* args = expr->arguments(); 3800 ZoneList<Expression*>* args = expr->arguments();
3801 DCHECK(args->length() == 2); 3801 DCHECK(args->length() == 2);
3802 DCHECK_NE(NULL, args->at(1)->AsLiteral()); 3802 DCHECK(args->at(1)->AsLiteral());
3803 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); 3803 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value()));
3804 3804
3805 VisitForAccumulatorValue(args->at(0)); // Load the object. 3805 VisitForAccumulatorValue(args->at(0)); // Load the object.
3806 3806
3807 Label runtime, done, not_date_object; 3807 Label runtime, done, not_date_object;
3808 Register object = v0; 3808 Register object = v0;
3809 Register result = v0; 3809 Register result = v0;
3810 Register scratch0 = t1; 3810 Register scratch0 = t1;
3811 Register scratch1 = a1; 3811 Register scratch1 = a1;
3812 3812
(...skipping 346 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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
5353 Assembler::target_address_at(pc_immediate_load_address)) == 5353 Assembler::target_address_at(pc_immediate_load_address)) ==
5354 reinterpret_cast<uint64_t>( 5354 reinterpret_cast<uint64_t>(
5355 isolate->builtins()->OsrAfterStackCheck()->entry())); 5355 isolate->builtins()->OsrAfterStackCheck()->entry()));
5356 return OSR_AFTER_STACK_CHECK; 5356 return OSR_AFTER_STACK_CHECK;
5357 } 5357 }
5358 5358
5359 5359
5360 } } // namespace v8::internal 5360 } } // namespace v8::internal
5361 5361
5362 #endif // V8_TARGET_ARCH_MIPS64 5362 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« src/jsregexp.cc ('K') | « src/mips/full-codegen-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698