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

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

Issue 6570008: X64 Crankshaft: Add DoOuterContext to x64 lithium. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after
2198 } 2198 }
2199 } 2199 }
2200 2200
2201 2201
2202 void LCodeGen::DoContext(LContext* instr) { 2202 void LCodeGen::DoContext(LContext* instr) {
2203 Register result = ToRegister(instr->result()); 2203 Register result = ToRegister(instr->result());
2204 __ movq(result, Operand(rbp, StandardFrameConstants::kContextOffset)); 2204 __ movq(result, Operand(rbp, StandardFrameConstants::kContextOffset));
2205 } 2205 }
2206 2206
2207 2207
2208 void LCodeGen::DoOuterContext(LOuterContext* instr) {
2209 Register context = ToRegister(instr->context());
2210 Register result = ToRegister(instr->result());
2211 __ movq(result,
2212 Operand(context, Context::SlotOffset(Context::CLOSURE_INDEX)));
2213 __ movq(result, FieldOperand(result, JSFunction::kContextOffset));
2214 }
2215
2216
2208 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 2217 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
2209 Register result = ToRegister(instr->result()); 2218 Register result = ToRegister(instr->result());
2210 __ movq(result, GlobalObjectOperand()); 2219 __ movq(result, GlobalObjectOperand());
2211 } 2220 }
2212 2221
2213 2222
2214 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { 2223 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) {
2215 Register result = ToRegister(instr->result()); 2224 Register result = ToRegister(instr->result());
2216 __ movq(result, Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX))); 2225 __ movq(result, Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX)));
2217 __ movq(result, FieldOperand(result, GlobalObject::kGlobalReceiverOffset)); 2226 __ movq(result, FieldOperand(result, GlobalObject::kGlobalReceiverOffset));
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
3426 RegisterEnvironmentForDeoptimization(environment); 3435 RegisterEnvironmentForDeoptimization(environment);
3427 ASSERT(osr_pc_offset_ == -1); 3436 ASSERT(osr_pc_offset_ == -1);
3428 osr_pc_offset_ = masm()->pc_offset(); 3437 osr_pc_offset_ = masm()->pc_offset();
3429 } 3438 }
3430 3439
3431 #undef __ 3440 #undef __
3432 3441
3433 } } // namespace v8::internal 3442 } } // namespace v8::internal
3434 3443
3435 #endif // V8_TARGET_ARCH_X64 3444 #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