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

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

Issue 6613019: Revert change 7048 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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
« no previous file with comments | « no previous file | src/x64/lithium-x64.h » ('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 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 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 __ movq(temp, instr->hydrogen()->cell(), RelocInfo::GLOBAL_PROPERTY_CELL); 1959 __ movq(temp, instr->hydrogen()->cell(), RelocInfo::GLOBAL_PROPERTY_CELL);
1960 if (check_hole) { 1960 if (check_hole) {
1961 __ CompareRoot(Operand(temp, 0), Heap::kTheHoleValueRootIndex); 1961 __ CompareRoot(Operand(temp, 0), Heap::kTheHoleValueRootIndex);
1962 DeoptimizeIf(equal, instr->environment()); 1962 DeoptimizeIf(equal, instr->environment());
1963 } 1963 }
1964 __ movq(Operand(temp, 0), value); 1964 __ movq(Operand(temp, 0), value);
1965 } 1965 }
1966 1966
1967 1967
1968 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 1968 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
1969 Register context = ToRegister(instr->context());
1969 Register result = ToRegister(instr->result()); 1970 Register result = ToRegister(instr->result());
1970 __ movq(result, ContextOperand(rsi, instr->slot_index())); 1971 __ movq(result, ContextOperand(context, instr->slot_index()));
1971 } 1972 }
1972 1973
1973 1974
1974 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) { 1975 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) {
1976 Register context = ToRegister(instr->context());
1975 Register value = ToRegister(instr->value()); 1977 Register value = ToRegister(instr->value());
1976 __ movq(ContextOperand(rsi, instr->slot_index()), value); 1978 __ movq(ContextOperand(context, instr->slot_index()), value);
1977 if (instr->needs_write_barrier()) { 1979 if (instr->needs_write_barrier()) {
1978 int offset = Context::SlotOffset(instr->slot_index()); 1980 int offset = Context::SlotOffset(instr->slot_index());
1979 Register scratch_1 = ToRegister(instr->TempAt(0)); 1981 __ RecordWrite(context, offset, value, kScratchRegister);
1980 Register scratch_2 = ToRegister(instr->TempAt(1));
1981 __ movq(scratch_1, rsi);
1982 __ RecordWrite(scratch_1, offset, value, scratch_2);
1983 } 1982 }
1984 } 1983 }
1985 1984
1986 1985
1987 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { 1986 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) {
1988 Register object = ToRegister(instr->InputAt(0)); 1987 Register object = ToRegister(instr->InputAt(0));
1989 Register result = ToRegister(instr->result()); 1988 Register result = ToRegister(instr->result());
1990 if (instr->hydrogen()->is_in_object()) { 1989 if (instr->hydrogen()->is_in_object()) {
1991 __ movq(result, FieldOperand(object, instr->hydrogen()->offset())); 1990 __ movq(result, FieldOperand(object, instr->hydrogen()->offset()));
1992 } else { 1991 } else {
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after
3649 RegisterEnvironmentForDeoptimization(environment); 3648 RegisterEnvironmentForDeoptimization(environment);
3650 ASSERT(osr_pc_offset_ == -1); 3649 ASSERT(osr_pc_offset_ == -1);
3651 osr_pc_offset_ = masm()->pc_offset(); 3650 osr_pc_offset_ = masm()->pc_offset();
3652 } 3651 }
3653 3652
3654 #undef __ 3653 #undef __
3655 3654
3656 } } // namespace v8::internal 3655 } } // namespace v8::internal
3657 3656
3658 #endif // V8_TARGET_ARCH_X64 3657 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698