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

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

Issue 7739018: Inline functions with different contexts in the optimizing code generator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase to current tip-of-tree. Created 9 years, 3 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 2521 matching lines...) Expand 10 before | Expand all | Expand 10 after
2532 __ movq(result, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 2532 __ movq(result, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
2533 } 2533 }
2534 2534
2535 2535
2536 void LCodeGen::DoContext(LContext* instr) { 2536 void LCodeGen::DoContext(LContext* instr) {
2537 Register result = ToRegister(instr->result()); 2537 Register result = ToRegister(instr->result());
2538 __ movq(result, rsi); 2538 __ movq(result, rsi);
2539 } 2539 }
2540 2540
2541 2541
2542 void LCodeGen::DoInlinedContext(LInlinedContext* instr) {
2543 Register result = ToRegister(instr->result());
2544 __ movq(result, instr->closure(), RelocInfo::EMBEDDED_OBJECT);
2545 __ movq(result, FieldOperand(result, JSFunction::kContextOffset));
2546 }
2547
2548
2542 void LCodeGen::DoOuterContext(LOuterContext* instr) { 2549 void LCodeGen::DoOuterContext(LOuterContext* instr) {
2543 Register context = ToRegister(instr->context()); 2550 Register context = ToRegister(instr->context());
2544 Register result = ToRegister(instr->result()); 2551 Register result = ToRegister(instr->result());
2545 __ movq(result, 2552 __ movq(result,
2546 Operand(context, Context::SlotOffset(Context::PREVIOUS_INDEX))); 2553 Operand(context, Context::SlotOffset(Context::PREVIOUS_INDEX)));
2547 } 2554 }
2548 2555
2549 2556
2550 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 2557 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
2551 Register result = ToRegister(instr->result()); 2558 Register result = ToRegister(instr->result());
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
4148 RegisterEnvironmentForDeoptimization(environment); 4155 RegisterEnvironmentForDeoptimization(environment);
4149 ASSERT(osr_pc_offset_ == -1); 4156 ASSERT(osr_pc_offset_ == -1);
4150 osr_pc_offset_ = masm()->pc_offset(); 4157 osr_pc_offset_ = masm()->pc_offset();
4151 } 4158 }
4152 4159
4153 #undef __ 4160 #undef __
4154 4161
4155 } } // namespace v8::internal 4162 } } // namespace v8::internal
4156 4163
4157 #endif // V8_TARGET_ARCH_X64 4164 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/lithium-codegen-ia32.cc ('K') | « src/objects.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698