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

Side by Side Diff: src/codegen.h

Issue 506052: Optimize bitops with non-Smi inputs. Instead of converting both inputs... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years 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 | « no previous file | src/ia32/codegen-ia32.cc » ('j') | src/ia32/codegen-ia32.cc » ('J')
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 public: 249 public:
250 explicit UnarySubStub(bool overwrite) 250 explicit UnarySubStub(bool overwrite)
251 : overwrite_(overwrite) { } 251 : overwrite_(overwrite) { }
252 252
253 private: 253 private:
254 bool overwrite_; 254 bool overwrite_;
255 Major MajorKey() { return UnarySub; } 255 Major MajorKey() { return UnarySub; }
256 int MinorKey() { return overwrite_ ? 1 : 0; } 256 int MinorKey() { return overwrite_ ? 1 : 0; }
257 void Generate(MacroAssembler* masm); 257 void Generate(MacroAssembler* masm);
258 258
259 const char* GetName() { return "UnarySubStub"; } 259 const char* GetName() {
260 return overwrite_ ? "UnarySubStub_Overwrite" : "UnarySubStub_Alloc";
261 }
260 }; 262 };
261 263
262 264
263 class CompareStub: public CodeStub { 265 class CompareStub: public CodeStub {
264 public: 266 public:
265 CompareStub(Condition cc, bool strict) : cc_(cc), strict_(strict) { } 267 CompareStub(Condition cc, bool strict) : cc_(cc), strict_(strict) { }
266 268
267 void Generate(MacroAssembler* masm); 269 void Generate(MacroAssembler* masm);
268 270
269 private: 271 private:
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 PrintF("ArgumentsAccessStub (type %d)\n", type_); 420 PrintF("ArgumentsAccessStub (type %d)\n", type_);
419 } 421 }
420 #endif 422 #endif
421 }; 423 };
422 424
423 425
424 } // namespace internal 426 } // namespace internal
425 } // namespace v8 427 } // namespace v8
426 428
427 #endif // V8_CODEGEN_H_ 429 #endif // V8_CODEGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698