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

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

Issue 877753007: Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: VS201x now happy? 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/log.cc ('k') | src/mips64/full-codegen-mips64.cc » ('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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 3777 matching lines...) Expand 10 before | Expand all | Expand 10 after
3788 __ lw(v0, FieldMemOperand(v0, JSValue::kValueOffset)); 3788 __ lw(v0, FieldMemOperand(v0, JSValue::kValueOffset));
3789 3789
3790 __ bind(&done); 3790 __ bind(&done);
3791 context()->Plug(v0); 3791 context()->Plug(v0);
3792 } 3792 }
3793 3793
3794 3794
3795 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { 3795 void FullCodeGenerator::EmitDateField(CallRuntime* expr) {
3796 ZoneList<Expression*>* args = expr->arguments(); 3796 ZoneList<Expression*>* args = expr->arguments();
3797 DCHECK(args->length() == 2); 3797 DCHECK(args->length() == 2);
3798 DCHECK_NE(NULL, args->at(1)->AsLiteral()); 3798 DCHECK_NOT_NULL(args->at(1)->AsLiteral());
3799 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); 3799 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value()));
3800 3800
3801 VisitForAccumulatorValue(args->at(0)); // Load the object. 3801 VisitForAccumulatorValue(args->at(0)); // Load the object.
3802 3802
3803 Label runtime, done, not_date_object; 3803 Label runtime, done, not_date_object;
3804 Register object = v0; 3804 Register object = v0;
3805 Register result = v0; 3805 Register result = v0;
3806 Register scratch0 = t5; 3806 Register scratch0 = t5;
3807 Register scratch1 = a1; 3807 Register scratch1 = a1;
3808 3808
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
4154 __ pop(a2); 4154 __ pop(a2);
4155 __ CallStub(&stub); 4155 __ CallStub(&stub);
4156 context()->Plug(v0); 4156 context()->Plug(v0);
4157 } 4157 }
4158 4158
4159 4159
4160 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { 4160 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) {
4161 ZoneList<Expression*>* args = expr->arguments(); 4161 ZoneList<Expression*>* args = expr->arguments();
4162 DCHECK_EQ(2, args->length()); 4162 DCHECK_EQ(2, args->length());
4163 4163
4164 DCHECK_NE(NULL, args->at(0)->AsLiteral()); 4164 DCHECK_NOT_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(v0, Heap::kUndefinedValueRootIndex); 4171 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
4172 context()->Plug(v0); 4172 context()->Plug(v0);
4173 return; 4173 return;
4174 } 4174 }
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
5344 Assembler::target_address_at(pc_immediate_load_address)) == 5344 Assembler::target_address_at(pc_immediate_load_address)) ==
5345 reinterpret_cast<uint32_t>( 5345 reinterpret_cast<uint32_t>(
5346 isolate->builtins()->OsrAfterStackCheck()->entry())); 5346 isolate->builtins()->OsrAfterStackCheck()->entry()));
5347 return OSR_AFTER_STACK_CHECK; 5347 return OSR_AFTER_STACK_CHECK;
5348 } 5348 }
5349 5349
5350 5350
5351 } } // namespace v8::internal 5351 } } // namespace v8::internal
5352 5352
5353 #endif // V8_TARGET_ARCH_MIPS 5353 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « 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