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

Side by Side Diff: src/x64/codegen-x64.h

Issue 305005: Added support for assignments to global variables in the toplevel code... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // Returns the arguments allocation mode. 391 // Returns the arguments allocation mode.
392 ArgumentsAllocationMode ArgumentsMode() const; 392 ArgumentsAllocationMode ArgumentsMode() const;
393 393
394 // Store the arguments object and allocate it if necessary. 394 // Store the arguments object and allocate it if necessary.
395 Result StoreArgumentsObject(bool initial); 395 Result StoreArgumentsObject(bool initial);
396 396
397 // The following are used by class Reference. 397 // The following are used by class Reference.
398 void LoadReference(Reference* ref); 398 void LoadReference(Reference* ref);
399 void UnloadReference(Reference* ref); 399 void UnloadReference(Reference* ref);
400 400
401 Operand ContextOperand(Register context, int index) const { 401 static Operand ContextOperand(Register context, int index) {
402 return Operand(context, Context::SlotOffset(index)); 402 return Operand(context, Context::SlotOffset(index));
403 } 403 }
404 404
405 Operand SlotOperand(Slot* slot, Register tmp); 405 Operand SlotOperand(Slot* slot, Register tmp);
406 406
407 Operand ContextSlotOperandCheckExtensions(Slot* slot, 407 Operand ContextSlotOperandCheckExtensions(Slot* slot,
408 Result tmp, 408 Result tmp,
409 JumpTarget* slow); 409 JumpTarget* slow);
410 410
411 // Expressions 411 // Expressions
412 Operand GlobalObject() const { 412 static Operand GlobalObject() {
413 return ContextOperand(rsi, Context::GLOBAL_INDEX); 413 return ContextOperand(rsi, Context::GLOBAL_INDEX);
414 } 414 }
415 415
416 void LoadCondition(Expression* x, 416 void LoadCondition(Expression* x,
417 TypeofState typeof_state, 417 TypeofState typeof_state,
418 ControlDestination* destination, 418 ControlDestination* destination,
419 bool force_control); 419 bool force_control);
420 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); 420 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF);
421 void LoadGlobal(); 421 void LoadGlobal();
422 void LoadGlobalReceiver(); 422 void LoadGlobalReceiver();
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 // called from spilled code, because they do not leave the virtual frame 609 // called from spilled code, because they do not leave the virtual frame
610 // in a spilled state. 610 // in a spilled state.
611 bool in_spilled_code_; 611 bool in_spilled_code_;
612 612
613 static InlineRuntimeLUT kInlineRuntimeLUT[]; 613 static InlineRuntimeLUT kInlineRuntimeLUT[];
614 614
615 friend class VirtualFrame; 615 friend class VirtualFrame;
616 friend class JumpTarget; 616 friend class JumpTarget;
617 friend class Reference; 617 friend class Reference;
618 friend class Result; 618 friend class Result;
619 friend class FastCodeGenerator;
619 620
620 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc 621 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc
621 622
622 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 623 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
623 }; 624 };
624 625
625 626
626 // ------------------------------------------------------------------------- 627 // -------------------------------------------------------------------------
627 // Code stubs 628 // Code stubs
628 // 629 //
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 | FlagBits::encode(flags_) 684 | FlagBits::encode(flags_)
684 | SSE3Bits::encode(use_sse3_); 685 | SSE3Bits::encode(use_sse3_);
685 } 686 }
686 void Generate(MacroAssembler* masm); 687 void Generate(MacroAssembler* masm);
687 }; 688 };
688 689
689 690
690 } } // namespace v8::internal 691 } } // namespace v8::internal
691 692
692 #endif // V8_X64_CODEGEN_X64_H_ 693 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698