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

Side by Side Diff: src/x64/full-codegen-x64.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: CHECK_NULL/NOT_NULL is back. 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/x64/disasm-x64.cc ('k') | src/x64/macro-assembler-x64.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_X64 7 #if V8_TARGET_ARCH_X64
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 3688 matching lines...) Expand 10 before | Expand all | Expand 10 after
3699 __ movp(rax, FieldOperand(rax, JSValue::kValueOffset)); 3699 __ movp(rax, FieldOperand(rax, JSValue::kValueOffset));
3700 3700
3701 __ bind(&done); 3701 __ bind(&done);
3702 context()->Plug(rax); 3702 context()->Plug(rax);
3703 } 3703 }
3704 3704
3705 3705
3706 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { 3706 void FullCodeGenerator::EmitDateField(CallRuntime* expr) {
3707 ZoneList<Expression*>* args = expr->arguments(); 3707 ZoneList<Expression*>* args = expr->arguments();
3708 DCHECK(args->length() == 2); 3708 DCHECK(args->length() == 2);
3709 DCHECK_NE(NULL, args->at(1)->AsLiteral()); 3709 DCHECK_NOT_NULL(args->at(1)->AsLiteral());
3710 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); 3710 Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value()));
3711 3711
3712 VisitForAccumulatorValue(args->at(0)); // Load the object. 3712 VisitForAccumulatorValue(args->at(0)); // Load the object.
3713 3713
3714 Label runtime, done, not_date_object; 3714 Label runtime, done, not_date_object;
3715 Register object = rax; 3715 Register object = rax;
3716 Register result = rax; 3716 Register result = rax;
3717 Register scratch = rcx; 3717 Register scratch = rcx;
3718 3718
3719 __ JumpIfSmi(object, &not_date_object); 3719 __ JumpIfSmi(object, &not_date_object);
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
4051 __ Pop(rcx); 4051 __ Pop(rcx);
4052 __ CallStub(&stub); 4052 __ CallStub(&stub);
4053 context()->Plug(rax); 4053 context()->Plug(rax);
4054 } 4054 }
4055 4055
4056 4056
4057 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { 4057 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) {
4058 ZoneList<Expression*>* args = expr->arguments(); 4058 ZoneList<Expression*>* args = expr->arguments();
4059 DCHECK_EQ(2, args->length()); 4059 DCHECK_EQ(2, args->length());
4060 4060
4061 DCHECK_NE(NULL, args->at(0)->AsLiteral()); 4061 DCHECK_NOT_NULL(args->at(0)->AsLiteral());
4062 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value(); 4062 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value();
4063 4063
4064 Handle<FixedArray> jsfunction_result_caches( 4064 Handle<FixedArray> jsfunction_result_caches(
4065 isolate()->native_context()->jsfunction_result_caches()); 4065 isolate()->native_context()->jsfunction_result_caches());
4066 if (jsfunction_result_caches->length() <= cache_id) { 4066 if (jsfunction_result_caches->length() <= cache_id) {
4067 __ Abort(kAttemptToUseUndefinedCache); 4067 __ Abort(kAttemptToUseUndefinedCache);
4068 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex); 4068 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex);
4069 context()->Plug(rax); 4069 context()->Plug(rax);
4070 return; 4070 return;
4071 } 4071 }
(...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after
5298 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5298 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5299 Assembler::target_address_at(call_target_address, 5299 Assembler::target_address_at(call_target_address,
5300 unoptimized_code)); 5300 unoptimized_code));
5301 return OSR_AFTER_STACK_CHECK; 5301 return OSR_AFTER_STACK_CHECK;
5302 } 5302 }
5303 5303
5304 5304
5305 } } // namespace v8::internal 5305 } } // namespace v8::internal
5306 5306
5307 #endif // V8_TARGET_ARCH_X64 5307 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698