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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 8 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/ia32/macro-assembler-ia32.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // distinguish memory operands from other operands on ia32. 49 // distinguish memory operands from other operands on ia32.
50 typedef Operand MemOperand; 50 typedef Operand MemOperand;
51 51
52 // Forward declaration. 52 // Forward declaration.
53 class JumpTarget; 53 class JumpTarget;
54 class PostCallGenerator; 54 class PostCallGenerator;
55 55
56 // MacroAssembler implements a collection of frequently used macros. 56 // MacroAssembler implements a collection of frequently used macros.
57 class MacroAssembler: public Assembler { 57 class MacroAssembler: public Assembler {
58 public: 58 public:
59 // The isolate parameter can be NULL if the macro assembler should 59 MacroAssembler(void* buffer, int size);
60 // not use isolate-dependent functionality. In this case, it's the
61 // responsibility of the caller to never invoke such function on the
62 // macro assembler.
63 MacroAssembler(Isolate* isolate, void* buffer, int size);
64 60
65 // --------------------------------------------------------------------------- 61 // ---------------------------------------------------------------------------
66 // GC Support 62 // GC Support
67 63
68 // For page containing |object| mark region covering |addr| dirty. 64 // For page containing |object| mark region covering |addr| dirty.
69 // RecordWriteHelper only works if the object is not in new 65 // RecordWriteHelper only works if the object is not in new
70 // space. 66 // space.
71 void RecordWriteHelper(Register object, 67 void RecordWriteHelper(Register object,
72 Register addr, 68 Register addr,
73 Register scratch); 69 Register scratch);
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 void CallSelf() { 573 void CallSelf() {
578 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); 574 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location()));
579 call(self, RelocInfo::CODE_TARGET); 575 call(self, RelocInfo::CODE_TARGET);
580 } 576 }
581 577
582 // Move if the registers are not identical. 578 // Move if the registers are not identical.
583 void Move(Register target, Register source); 579 void Move(Register target, Register source);
584 580
585 void Move(Register target, Handle<Object> value); 581 void Move(Register target, Handle<Object> value);
586 582
587 Handle<Object> CodeObject() { 583 Handle<Object> CodeObject() { return code_object_; }
588 ASSERT(!code_object_.is_null());
589 return code_object_;
590 }
591 584
592 585
593 // --------------------------------------------------------------------------- 586 // ---------------------------------------------------------------------------
594 // StatsCounter support 587 // StatsCounter support
595 588
596 void SetCounter(StatsCounter* counter, int value); 589 void SetCounter(StatsCounter* counter, int value);
597 void IncrementCounter(StatsCounter* counter, int value); 590 void IncrementCounter(StatsCounter* counter, int value);
598 void DecrementCounter(StatsCounter* counter, int value); 591 void DecrementCounter(StatsCounter* counter, int value);
599 void IncrementCounter(Condition cc, StatsCounter* counter, int value); 592 void IncrementCounter(Condition cc, StatsCounter* counter, int value);
600 void DecrementCounter(Condition cc, StatsCounter* counter, int value); 593 void DecrementCounter(Condition cc, StatsCounter* counter, int value);
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 } \ 791 } \
799 masm-> 792 masm->
800 #else 793 #else
801 #define ACCESS_MASM(masm) masm-> 794 #define ACCESS_MASM(masm) masm->
802 #endif 795 #endif
803 796
804 797
805 } } // namespace v8::internal 798 } } // namespace v8::internal
806 799
807 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 800 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698