| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |