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

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

Issue 903353002: X87: 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 | « src/x87/code-stubs-x87.cc ('k') | 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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 4797 matching lines...) Expand 10 before | Expand all | Expand 10 after
4808 IsSimpleMapChangeTransition(from_kind, to_kind); 4808 IsSimpleMapChangeTransition(from_kind, to_kind);
4809 Label::Distance branch_distance = 4809 Label::Distance branch_distance =
4810 is_simple_map_transition ? Label::kNear : Label::kFar; 4810 is_simple_map_transition ? Label::kNear : Label::kFar;
4811 __ cmp(FieldOperand(object_reg, HeapObject::kMapOffset), from_map); 4811 __ cmp(FieldOperand(object_reg, HeapObject::kMapOffset), from_map);
4812 __ j(not_equal, &not_applicable, branch_distance); 4812 __ j(not_equal, &not_applicable, branch_distance);
4813 if (is_simple_map_transition) { 4813 if (is_simple_map_transition) {
4814 Register new_map_reg = ToRegister(instr->new_map_temp()); 4814 Register new_map_reg = ToRegister(instr->new_map_temp());
4815 __ mov(FieldOperand(object_reg, HeapObject::kMapOffset), 4815 __ mov(FieldOperand(object_reg, HeapObject::kMapOffset),
4816 Immediate(to_map)); 4816 Immediate(to_map));
4817 // Write barrier. 4817 // Write barrier.
4818 DCHECK_NE(instr->temp(), NULL); 4818 DCHECK_NOT_NULL(instr->temp());
4819 __ RecordWriteForMap(object_reg, to_map, new_map_reg, 4819 __ RecordWriteForMap(object_reg, to_map, new_map_reg,
4820 ToRegister(instr->temp()), kDontSaveFPRegs); 4820 ToRegister(instr->temp()), kDontSaveFPRegs);
4821 } else { 4821 } else {
4822 DCHECK(ToRegister(instr->context()).is(esi)); 4822 DCHECK(ToRegister(instr->context()).is(esi));
4823 DCHECK(object_reg.is(eax)); 4823 DCHECK(object_reg.is(eax));
4824 PushSafepointRegistersScope scope(this); 4824 PushSafepointRegistersScope scope(this);
4825 __ mov(ebx, to_map); 4825 __ mov(ebx, to_map);
4826 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; 4826 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE;
4827 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array); 4827 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array);
4828 __ CallStub(&stub); 4828 __ CallStub(&stub);
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
6358 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6358 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6359 RecordSafepoint(Safepoint::kNoLazyDeopt); 6359 RecordSafepoint(Safepoint::kNoLazyDeopt);
6360 } 6360 }
6361 6361
6362 6362
6363 #undef __ 6363 #undef __
6364 6364
6365 } } // namespace v8::internal 6365 } } // namespace v8::internal
6366 6366
6367 #endif // V8_TARGET_ARCH_X87 6367 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698