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

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

Issue 6597104: Move IncrementalRecordWrite to a stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 // it as no longer deleted. We deoptimize in that case. 1948 // it as no longer deleted. We deoptimize in that case.
1949 if (instr->hydrogen()->check_hole_value()) { 1949 if (instr->hydrogen()->check_hole_value()) {
1950 __ cmp(Operand::Cell(cell_handle), Factory::the_hole_value()); 1950 __ cmp(Operand::Cell(cell_handle), Factory::the_hole_value());
1951 DeoptimizeIf(equal, instr->environment()); 1951 DeoptimizeIf(equal, instr->environment());
1952 } 1952 }
1953 1953
1954 // Store the value. 1954 // Store the value.
1955 __ mov(object, Immediate(cell_handle)); 1955 __ mov(object, Immediate(cell_handle));
1956 __ mov(FieldOperand(object, JSGlobalPropertyCell::kValueOffset), value); 1956 __ mov(FieldOperand(object, JSGlobalPropertyCell::kValueOffset), value);
1957 1957
1958 NearLabel done; 1958 __ IncrementalMarkingRecordWrite(
1959 __ test(value, Immediate(kSmiTagMask)); 1959 object, value, scratch, INLINE_SMI_CHECK, DESTROY_OBJECT, DESTROY_VALUE, D ESTROY_SCRATCH);
Erik Corry 2011/03/02 12:34:06 Lint.
Vyacheslav Egorov (Chromium) 2011/03/02 15:11:32 Done.
1960 __ j(zero, &done);
1961 __ IncrementalMarkingRecordWrite(object, value, scratch);
1962 __ bind(&done);
1963
1964 } 1960 }
1965 1961
1966 1962
1967 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 1963 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
1968 Register context = ToRegister(instr->context()); 1964 Register context = ToRegister(instr->context());
1969 Register result = ToRegister(instr->result()); 1965 Register result = ToRegister(instr->result());
1970 __ mov(result, ContextOperand(context, instr->slot_index())); 1966 __ mov(result, ContextOperand(context, instr->slot_index()));
1971 } 1967 }
1972 1968
1973 1969
(...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after
3795 ASSERT(osr_pc_offset_ == -1); 3791 ASSERT(osr_pc_offset_ == -1);
3796 osr_pc_offset_ = masm()->pc_offset(); 3792 osr_pc_offset_ = masm()->pc_offset();
3797 } 3793 }
3798 3794
3799 3795
3800 #undef __ 3796 #undef __
3801 3797
3802 } } // namespace v8::internal 3798 } } // namespace v8::internal
3803 3799
3804 #endif // V8_TARGET_ARCH_IA32 3800 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698