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

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

Issue 6674053: X64: Add the global object as parameter to the GlobalReceiver instruction (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 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 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2347 } 2347 }
2348 2348
2349 2349
2350 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 2350 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
2351 Register result = ToRegister(instr->result()); 2351 Register result = ToRegister(instr->result());
2352 __ movq(result, GlobalObjectOperand()); 2352 __ movq(result, GlobalObjectOperand());
2353 } 2353 }
2354 2354
2355 2355
2356 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { 2356 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) {
2357 Register global = ToRegister(instr->global());
2357 Register result = ToRegister(instr->result()); 2358 Register result = ToRegister(instr->result());
2358 __ movq(result, Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX))); 2359 __ movq(result, FieldOperand(global, GlobalObject::kGlobalReceiverOffset));
2359 __ movq(result, FieldOperand(result, GlobalObject::kGlobalReceiverOffset));
2360 } 2360 }
2361 2361
2362 2362
2363 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 2363 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
2364 int arity, 2364 int arity,
2365 LInstruction* instr) { 2365 LInstruction* instr) {
2366 // Change context if needed. 2366 // Change context if needed.
2367 bool change_context = 2367 bool change_context =
2368 (info()->closure()->context() != function->context()) || 2368 (info()->closure()->context() != function->context()) ||
2369 scope()->contains_with() || 2369 scope()->contains_with() ||
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after
3778 RegisterEnvironmentForDeoptimization(environment); 3778 RegisterEnvironmentForDeoptimization(environment);
3779 ASSERT(osr_pc_offset_ == -1); 3779 ASSERT(osr_pc_offset_ == -1);
3780 osr_pc_offset_ = masm()->pc_offset(); 3780 osr_pc_offset_ = masm()->pc_offset();
3781 } 3781 }
3782 3782
3783 #undef __ 3783 #undef __
3784 3784
3785 } } // namespace v8::internal 3785 } } // namespace v8::internal
3786 3786
3787 #endif // V8_TARGET_ARCH_X64 3787 #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