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

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

Issue 7044081: Use the previous context link when checking context extension objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 2664 matching lines...) Expand 10 before | Expand all | Expand 10 after
2675 void LCodeGen::DoContext(LContext* instr) { 2675 void LCodeGen::DoContext(LContext* instr) {
2676 Register result = ToRegister(instr->result()); 2676 Register result = ToRegister(instr->result());
2677 __ movq(result, rsi); 2677 __ movq(result, rsi);
2678 } 2678 }
2679 2679
2680 2680
2681 void LCodeGen::DoOuterContext(LOuterContext* instr) { 2681 void LCodeGen::DoOuterContext(LOuterContext* instr) {
2682 Register context = ToRegister(instr->context()); 2682 Register context = ToRegister(instr->context());
2683 Register result = ToRegister(instr->result()); 2683 Register result = ToRegister(instr->result());
2684 __ movq(result, 2684 __ movq(result,
2685 Operand(context, Context::SlotOffset(Context::CLOSURE_INDEX))); 2685 Operand(context, Context::SlotOffset(Context::PREVIOUS_INDEX)));
2686 __ movq(result, FieldOperand(result, JSFunction::kContextOffset));
2687 } 2686 }
2688 2687
2689 2688
2690 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 2689 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
2691 Register result = ToRegister(instr->result()); 2690 Register result = ToRegister(instr->result());
2692 __ movq(result, GlobalObjectOperand()); 2691 __ movq(result, GlobalObjectOperand());
2693 } 2692 }
2694 2693
2695 2694
2696 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { 2695 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) {
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after
4268 RegisterEnvironmentForDeoptimization(environment); 4267 RegisterEnvironmentForDeoptimization(environment);
4269 ASSERT(osr_pc_offset_ == -1); 4268 ASSERT(osr_pc_offset_ == -1);
4270 osr_pc_offset_ = masm()->pc_offset(); 4269 osr_pc_offset_ = masm()->pc_offset();
4271 } 4270 }
4272 4271
4273 #undef __ 4272 #undef __
4274 4273
4275 } } // namespace v8::internal 4274 } } // namespace v8::internal
4276 4275
4277 #endif // V8_TARGET_ARCH_X64 4276 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/lithium-codegen-ia32.cc ('K') | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698