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

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

Issue 7083024: Support optimization of named function literals. (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
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | 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 2660 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 2671 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
2672 } 2672 }
2673 2673
2674 2674
2675 void LCodeGen::DoPushArgument(LPushArgument* instr) { 2675 void LCodeGen::DoPushArgument(LPushArgument* instr) {
2676 LOperand* argument = instr->InputAt(0); 2676 LOperand* argument = instr->InputAt(0);
2677 EmitPushTaggedOperand(argument); 2677 EmitPushTaggedOperand(argument);
2678 } 2678 }
2679 2679
2680 2680
2681 void LCodeGen::DoThisFunction(LThisFunction* instr) {
2682 Register result = ToRegister(instr->result());
2683 __ movq(result, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
2684 }
2685
2686
2681 void LCodeGen::DoContext(LContext* instr) { 2687 void LCodeGen::DoContext(LContext* instr) {
2682 Register result = ToRegister(instr->result()); 2688 Register result = ToRegister(instr->result());
2683 __ movq(result, rsi); 2689 __ movq(result, rsi);
2684 } 2690 }
2685 2691
2686 2692
2687 void LCodeGen::DoOuterContext(LOuterContext* instr) { 2693 void LCodeGen::DoOuterContext(LOuterContext* instr) {
2688 Register context = ToRegister(instr->context()); 2694 Register context = ToRegister(instr->context());
2689 Register result = ToRegister(instr->result()); 2695 Register result = ToRegister(instr->result());
2690 __ movq(result, 2696 __ movq(result,
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
4263 RegisterEnvironmentForDeoptimization(environment); 4269 RegisterEnvironmentForDeoptimization(environment);
4264 ASSERT(osr_pc_offset_ == -1); 4270 ASSERT(osr_pc_offset_ == -1);
4265 osr_pc_offset_ = masm()->pc_offset(); 4271 osr_pc_offset_ = masm()->pc_offset();
4266 } 4272 }
4267 4273
4268 #undef __ 4274 #undef __
4269 4275
4270 } } // namespace v8::internal 4276 } } // namespace v8::internal
4271 4277
4272 #endif // V8_TARGET_ARCH_X64 4278 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698