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

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

Issue 886833006: X87: Reland "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 | « no previous file | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
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 3684 matching lines...) Expand 10 before | Expand all | Expand 10 after
3695 __ mov(eax, FieldOperand(eax, JSValue::kValueOffset)); 3695 __ mov(eax, FieldOperand(eax, JSValue::kValueOffset));
3696 3696
3697 __ bind(&done); 3697 __ bind(&done);
3698 context()->Plug(eax); 3698 context()->Plug(eax);
3699 } 3699 }
3700 3700
3701 3701
3702 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { 3702 void FullCodeGenerator::EmitDateField(CallRuntime* expr) {
3703 ZoneList<Expression*>* args = expr->arguments(); 3703 ZoneList<Expression*>* args = expr->arguments();
3704 DCHECK(args->length() == 2); 3704 DCHECK(args->length() == 2);
3705 DCHECK_NOT_NUL(args->at(1)->AsLiteral()); 3705 DCHECK_NOT_NULL(args->at(1)->AsLiteral());
3706 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); 3706 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value()));
3707 3707
3708 VisitForAccumulatorValue(args->at(0)); // Load the object. 3708 VisitForAccumulatorValue(args->at(0)); // Load the object.
3709 3709
3710 Label runtime, done, not_date_object; 3710 Label runtime, done, not_date_object;
3711 Register object = eax; 3711 Register object = eax;
3712 Register result = eax; 3712 Register result = eax;
3713 Register scratch = ecx; 3713 Register scratch = ecx;
3714 3714
3715 __ JumpIfSmi(object, &not_date_object); 3715 __ JumpIfSmi(object, &not_date_object);
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
5270 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5270 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5271 Assembler::target_address_at(call_target_address, 5271 Assembler::target_address_at(call_target_address,
5272 unoptimized_code)); 5272 unoptimized_code));
5273 return OSR_AFTER_STACK_CHECK; 5273 return OSR_AFTER_STACK_CHECK;
5274 } 5274 }
5275 5275
5276 5276
5277 } } // namespace v8::internal 5277 } } // namespace v8::internal
5278 5278
5279 #endif // V8_TARGET_ARCH_X87 5279 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698