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

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

Issue 131513015: Remove obsolete instruction HOuterContext. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/mips/lithium-mips.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 3313 matching lines...) Expand 10 before | Expand all | Expand 10 after
3324 Register result = ToRegister(instr->result()); 3324 Register result = ToRegister(instr->result());
3325 if (info()->IsOptimizing()) { 3325 if (info()->IsOptimizing()) {
3326 __ movp(result, Operand(rbp, StandardFrameConstants::kContextOffset)); 3326 __ movp(result, Operand(rbp, StandardFrameConstants::kContextOffset));
3327 } else { 3327 } else {
3328 // If there is no frame, the context must be in rsi. 3328 // If there is no frame, the context must be in rsi.
3329 ASSERT(result.is(rsi)); 3329 ASSERT(result.is(rsi));
3330 } 3330 }
3331 } 3331 }
3332 3332
3333 3333
3334 void LCodeGen::DoOuterContext(LOuterContext* instr) {
3335 Register context = ToRegister(instr->context());
3336 Register result = ToRegister(instr->result());
3337 __ movp(result,
3338 Operand(context, Context::SlotOffset(Context::PREVIOUS_INDEX)));
3339 }
3340
3341
3342 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3334 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3343 ASSERT(ToRegister(instr->context()).is(rsi)); 3335 ASSERT(ToRegister(instr->context()).is(rsi));
3344 __ push(rsi); // The context is the first argument. 3336 __ push(rsi); // The context is the first argument.
3345 __ Push(instr->hydrogen()->pairs()); 3337 __ Push(instr->hydrogen()->pairs());
3346 __ Push(Smi::FromInt(instr->hydrogen()->flags())); 3338 __ Push(Smi::FromInt(instr->hydrogen()->flags()));
3347 CallRuntime(Runtime::kDeclareGlobals, 3, instr); 3339 CallRuntime(Runtime::kDeclareGlobals, 3, instr);
3348 } 3340 }
3349 3341
3350 3342
3351 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 3343 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
(...skipping 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after
5631 FixedArray::kHeaderSize - kPointerSize)); 5623 FixedArray::kHeaderSize - kPointerSize));
5632 __ bind(&done); 5624 __ bind(&done);
5633 } 5625 }
5634 5626
5635 5627
5636 #undef __ 5628 #undef __
5637 5629
5638 } } // namespace v8::internal 5630 } } // namespace v8::internal
5639 5631
5640 #endif // V8_TARGET_ARCH_X64 5632 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698