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

Side by Side Diff: src/codegen.h

Issue 2877018: Refactor type checks in v8natives.js and runtime.js.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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/full-codegen-arm.cc ('k') | src/full-codegen.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 F(SetValueOf, 2, 1) \ 113 F(SetValueOf, 2, 1) \
114 F(StringCharCodeAt, 2, 1) \ 114 F(StringCharCodeAt, 2, 1) \
115 F(StringCharFromCode, 1, 1) \ 115 F(StringCharFromCode, 1, 1) \
116 F(StringCharAt, 2, 1) \ 116 F(StringCharAt, 2, 1) \
117 F(ObjectEquals, 2, 1) \ 117 F(ObjectEquals, 2, 1) \
118 F(Log, 3, 1) \ 118 F(Log, 3, 1) \
119 F(RandomHeapNumber, 0, 1) \ 119 F(RandomHeapNumber, 0, 1) \
120 F(IsObject, 1, 1) \ 120 F(IsObject, 1, 1) \
121 F(IsFunction, 1, 1) \ 121 F(IsFunction, 1, 1) \
122 F(IsUndetectableObject, 1, 1) \ 122 F(IsUndetectableObject, 1, 1) \
123 F(IsSpecObject, 1, 1) \
123 F(StringAdd, 2, 1) \ 124 F(StringAdd, 2, 1) \
124 F(SubString, 3, 1) \ 125 F(SubString, 3, 1) \
125 F(StringCompare, 2, 1) \ 126 F(StringCompare, 2, 1) \
126 F(RegExpExec, 4, 1) \ 127 F(RegExpExec, 4, 1) \
127 F(RegExpConstructResult, 3, 1) \ 128 F(RegExpConstructResult, 3, 1) \
128 F(GetFromCache, 2, 1) \ 129 F(GetFromCache, 2, 1) \
129 F(NumberToString, 1, 1) \ 130 F(NumberToString, 1, 1) \
130 F(SwapElements, 3, 1) \ 131 F(SwapElements, 3, 1) \
131 F(MathPow, 2, 1) \ 132 F(MathPow, 2, 1) \
132 F(MathSin, 1, 1) \ 133 F(MathSin, 1, 1) \
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 static CodeGenerator* Current() { 174 static CodeGenerator* Current() {
174 ASSERT(top_ != NULL); 175 ASSERT(top_ != NULL);
175 return top_; 176 return top_;
176 } 177 }
177 178
178 private: 179 private:
179 static CodeGenerator* top_; 180 static CodeGenerator* top_;
180 CodeGenerator* previous_; 181 CodeGenerator* previous_;
181 }; 182 };
182 183
183
184 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 184 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64
185 185
186 // State of used registers in a virtual frame. 186 // State of used registers in a virtual frame.
187 class FrameRegisterState { 187 class FrameRegisterState {
188 public: 188 public:
189 // Captures the current state of the given frame. 189 // Captures the current state of the given frame.
190 explicit FrameRegisterState(VirtualFrame* frame); 190 explicit FrameRegisterState(VirtualFrame* frame);
191 191
192 // Saves the state in the stack. 192 // Saves the state in the stack.
193 void Save(MacroAssembler* masm) const; 193 void Save(MacroAssembler* masm) const;
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 StringCharFromCodeGenerator char_from_code_generator_; 888 StringCharFromCodeGenerator char_from_code_generator_;
889 889
890 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator); 890 DISALLOW_COPY_AND_ASSIGN(StringCharAtGenerator);
891 }; 891 };
892 892
893 893
894 } // namespace internal 894 } // namespace internal
895 } // namespace v8 895 } // namespace v8
896 896
897 #endif // V8_CODEGEN_H_ 897 #endif // V8_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698