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

Side by Side Diff: src/codegen.h

Issue 119241: A bunch of changes to speed up math on ARM.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 6 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 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 const char* GetName() { return "StackCheckStub"; } 217 const char* GetName() { return "StackCheckStub"; }
218 218
219 Major MajorKey() { return StackCheck; } 219 Major MajorKey() { return StackCheck; }
220 int MinorKey() { return 0; } 220 int MinorKey() { return 0; }
221 }; 221 };
222 222
223 223
224 class UnarySubStub : public CodeStub { 224 class UnarySubStub : public CodeStub {
225 public: 225 public:
226 UnarySubStub() { } 226 explicit UnarySubStub(bool overwrite)
227 : overwrite_(overwrite) { }
227 228
228 private: 229 private:
230 bool overwrite_;
229 Major MajorKey() { return UnarySub; } 231 Major MajorKey() { return UnarySub; }
230 int MinorKey() { return 0; } 232 int MinorKey() { return overwrite_ ? 1 : 0; }
231 void Generate(MacroAssembler* masm); 233 void Generate(MacroAssembler* masm);
232 234
233 const char* GetName() { return "UnarySubStub"; } 235 const char* GetName() { return "UnarySubStub"; }
234 }; 236 };
235 237
236 238
237 class CEntryStub : public CodeStub { 239 class CEntryStub : public CodeStub {
238 public: 240 public:
239 CEntryStub() { } 241 CEntryStub() { }
240 242
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 PrintF("ArgumentsAccessStub (type %d)\n", type_); 332 PrintF("ArgumentsAccessStub (type %d)\n", type_);
331 } 333 }
332 #endif 334 #endif
333 }; 335 };
334 336
335 337
336 } // namespace internal 338 } // namespace internal
337 } // namespace v8 339 } // namespace v8
338 340
339 #endif // V8_CODEGEN_H_ 341 #endif // V8_CODEGEN_H_
OLDNEW
« src/arm/codegen-arm.cc ('K') | « src/code-stubs.h ('k') | src/d8.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698