| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 private: | 257 private: |
| 258 int slots_; | 258 int slots_; |
| 259 | 259 |
| 260 const char* GetName() { return "FastNewContextStub"; } | 260 const char* GetName() { return "FastNewContextStub"; } |
| 261 Major MajorKey() { return FastNewContext; } | 261 Major MajorKey() { return FastNewContext; } |
| 262 int MinorKey() { return slots_; } | 262 int MinorKey() { return slots_; } |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 | 265 |
| 266 class FastCloneShallowArrayStub : public CodeStub { |
| 267 public: |
| 268 static const int kMaximumLength = 8; |
| 269 |
| 270 explicit FastCloneShallowArrayStub(int length) : length_(length) { |
| 271 ASSERT(length >= 0 && length <= kMaximumLength); |
| 272 } |
| 273 |
| 274 void Generate(MacroAssembler* masm); |
| 275 |
| 276 private: |
| 277 int length_; |
| 278 |
| 279 const char* GetName() { return "FastCloneShallowArrayStub"; } |
| 280 Major MajorKey() { return FastCloneShallowArray; } |
| 281 int MinorKey() { return length_; } |
| 282 }; |
| 283 |
| 284 |
| 266 class InstanceofStub: public CodeStub { | 285 class InstanceofStub: public CodeStub { |
| 267 public: | 286 public: |
| 268 InstanceofStub() { } | 287 InstanceofStub() { } |
| 269 | 288 |
| 270 void Generate(MacroAssembler* masm); | 289 void Generate(MacroAssembler* masm); |
| 271 | 290 |
| 272 private: | 291 private: |
| 273 Major MajorKey() { return Instanceof; } | 292 Major MajorKey() { return Instanceof; } |
| 274 int MinorKey() { return 0; } | 293 int MinorKey() { return 0; } |
| 275 }; | 294 }; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 PrintF("ArgumentsAccessStub (type %d)\n", type_); | 467 PrintF("ArgumentsAccessStub (type %d)\n", type_); |
| 449 } | 468 } |
| 450 #endif | 469 #endif |
| 451 }; | 470 }; |
| 452 | 471 |
| 453 | 472 |
| 454 } // namespace internal | 473 } // namespace internal |
| 455 } // namespace v8 | 474 } // namespace v8 |
| 456 | 475 |
| 457 #endif // V8_CODEGEN_H_ | 476 #endif // V8_CODEGEN_H_ |
| OLD | NEW |