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

Side by Side Diff: src/arm/macro-assembler-arm.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/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Object is known to be a non smi. 83 // Object is known to be a non smi.
84 OBJECT_NOT_SMI = 1 << 0, 84 OBJECT_NOT_SMI = 1 << 0,
85 // Don't load NaNs or infinities, branch to the non number case instead. 85 // Don't load NaNs or infinities, branch to the non number case instead.
86 AVOID_NANS_AND_INFINITIES = 1 << 1 86 AVOID_NANS_AND_INFINITIES = 1 << 1
87 }; 87 };
88 88
89 89
90 // MacroAssembler implements a collection of frequently used macros. 90 // MacroAssembler implements a collection of frequently used macros.
91 class MacroAssembler: public Assembler { 91 class MacroAssembler: public Assembler {
92 public: 92 public:
93 // The isolate parameter can be NULL if the macro assembler should 93 MacroAssembler(void* buffer, int size);
94 // not use isolate-dependent functionality. In this case, it's the
95 // responsibility of the caller to never invoke such function on the
96 // macro assembler.
97 MacroAssembler(Isolate* isolate, void* buffer, int size);
98 94
99 // Jump, Call, and Ret pseudo instructions implementing inter-working. 95 // Jump, Call, and Ret pseudo instructions implementing inter-working.
100 void Jump(Register target, Condition cond = al); 96 void Jump(Register target, Condition cond = al);
101 void Jump(byte* target, RelocInfo::Mode rmode, Condition cond = al); 97 void Jump(byte* target, RelocInfo::Mode rmode, Condition cond = al);
102 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); 98 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al);
103 int CallSize(Register target, Condition cond = al); 99 int CallSize(Register target, Condition cond = al);
104 void Call(Register target, Condition cond = al); 100 void Call(Register target, Condition cond = al);
105 int CallSize(byte* target, RelocInfo::Mode rmode, Condition cond = al); 101 int CallSize(byte* target, RelocInfo::Mode rmode, Condition cond = al);
106 void Call(byte* target, RelocInfo::Mode rmode, Condition cond = al); 102 void Call(byte* target, RelocInfo::Mode rmode, Condition cond = al);
107 int CallSize(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); 103 int CallSize(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al);
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 InvokeJSFlags flags, 774 InvokeJSFlags flags,
779 CallWrapper* call_wrapper = NULL); 775 CallWrapper* call_wrapper = NULL);
780 776
781 // Store the code object for the given builtin in the target register and 777 // Store the code object for the given builtin in the target register and
782 // setup the function in r1. 778 // setup the function in r1.
783 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 779 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
784 780
785 // Store the function for the given builtin in the target register. 781 // Store the function for the given builtin in the target register.
786 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 782 void GetBuiltinFunction(Register target, Builtins::JavaScript id);
787 783
788 Handle<Object> CodeObject() { 784 Handle<Object> CodeObject() { return code_object_; }
789 ASSERT(!code_object_.is_null());
790 return code_object_;
791 }
792 785
793 786
794 // --------------------------------------------------------------------------- 787 // ---------------------------------------------------------------------------
795 // StatsCounter support 788 // StatsCounter support
796 789
797 void SetCounter(StatsCounter* counter, int value, 790 void SetCounter(StatsCounter* counter, int value,
798 Register scratch1, Register scratch2); 791 Register scratch1, Register scratch2);
799 void IncrementCounter(StatsCounter* counter, int value, 792 void IncrementCounter(StatsCounter* counter, int value,
800 Register scratch1, Register scratch2); 793 Register scratch1, Register scratch2);
801 void DecrementCounter(StatsCounter* counter, int value, 794 void DecrementCounter(StatsCounter* counter, int value,
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1055 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1063 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1056 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1064 #else 1057 #else
1065 #define ACCESS_MASM(masm) masm-> 1058 #define ACCESS_MASM(masm) masm->
1066 #endif 1059 #endif
1067 1060
1068 1061
1069 } } // namespace v8::internal 1062 } } // namespace v8::internal
1070 1063
1071 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1064 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698