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

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

Issue 6627048: X64 Crankshaft: Revert r7071 and fix DoStoreContextSlot in a different way. (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') | src/x64/lithium-x64.cc » ('J')
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 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 __ movq(result, ContextOperand(context, instr->slot_index())); 1970 __ movq(result, ContextOperand(context, instr->slot_index()));
1971 } 1971 }
1972 1972
1973 1973
1974 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) { 1974 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) {
1975 Register context = ToRegister(instr->context()); 1975 Register context = ToRegister(instr->context());
1976 Register value = ToRegister(instr->value()); 1976 Register value = ToRegister(instr->value());
1977 __ movq(ContextOperand(context, instr->slot_index()), value); 1977 __ movq(ContextOperand(context, instr->slot_index()), value);
1978 if (instr->needs_write_barrier()) { 1978 if (instr->needs_write_barrier()) {
1979 int offset = Context::SlotOffset(instr->slot_index()); 1979 int offset = Context::SlotOffset(instr->slot_index());
1980 __ RecordWrite(context, offset, value, kScratchRegister); 1980 Register scratch = ToRegister(instr->TempAt(0));
1981 __ RecordWrite(context, offset, value, scratch);
1981 } 1982 }
1982 } 1983 }
1983 1984
1984 1985
1985 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { 1986 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) {
1986 Register object = ToRegister(instr->InputAt(0)); 1987 Register object = ToRegister(instr->InputAt(0));
1987 Register result = ToRegister(instr->result()); 1988 Register result = ToRegister(instr->result());
1988 if (instr->hydrogen()->is_in_object()) { 1989 if (instr->hydrogen()->is_in_object()) {
1989 __ movq(result, FieldOperand(object, instr->hydrogen()->offset())); 1990 __ movq(result, FieldOperand(object, instr->hydrogen()->offset()));
1990 } else { 1991 } else {
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after
3647 RegisterEnvironmentForDeoptimization(environment); 3648 RegisterEnvironmentForDeoptimization(environment);
3648 ASSERT(osr_pc_offset_ == -1); 3649 ASSERT(osr_pc_offset_ == -1);
3649 osr_pc_offset_ = masm()->pc_offset(); 3650 osr_pc_offset_ = masm()->pc_offset();
3650 } 3651 }
3651 3652
3652 #undef __ 3653 #undef __
3653 3654
3654 } } // namespace v8::internal 3655 } } // namespace v8::internal
3655 3656
3656 #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') | src/x64/lithium-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698