| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 InterruptStub() { } | 467 InterruptStub() { } |
| 468 | 468 |
| 469 void Generate(MacroAssembler* masm); | 469 void Generate(MacroAssembler* masm); |
| 470 | 470 |
| 471 private: | 471 private: |
| 472 Major MajorKey() { return Interrupt; } | 472 Major MajorKey() { return Interrupt; } |
| 473 int MinorKey() { return 0; } | 473 int MinorKey() { return 0; } |
| 474 }; | 474 }; |
| 475 | 475 |
| 476 | 476 |
| 477 class ToNumberStub: public PlatformCodeStub { | 477 class ToNumberStub: public HydrogenCodeStub { |
| 478 public: | 478 public: |
| 479 ToNumberStub() { } | 479 ToNumberStub() { } |
| 480 | 480 |
| 481 void Generate(MacroAssembler* masm); | 481 virtual Handle<Code> GenerateCode(); |
| 482 |
| 483 virtual void InitializeInterfaceDescriptor( |
| 484 Isolate* isolate, |
| 485 CodeStubInterfaceDescriptor* descriptor); |
| 482 | 486 |
| 483 private: | 487 private: |
| 484 Major MajorKey() { return ToNumber; } | 488 Major MajorKey() { return ToNumber; } |
| 485 int MinorKey() { return 0; } | 489 int NotMissMinorKey() { return 0; } |
| 486 }; | 490 }; |
| 487 | 491 |
| 488 | 492 |
| 489 class FastNewClosureStub : public PlatformCodeStub { | 493 class FastNewClosureStub : public PlatformCodeStub { |
| 490 public: | 494 public: |
| 491 explicit FastNewClosureStub(LanguageMode language_mode, bool is_generator) | 495 explicit FastNewClosureStub(LanguageMode language_mode, bool is_generator) |
| 492 : language_mode_(language_mode), | 496 : language_mode_(language_mode), |
| 493 is_generator_(is_generator) { } | 497 is_generator_(is_generator) { } |
| 494 | 498 |
| 495 void Generate(MacroAssembler* masm); | 499 void Generate(MacroAssembler* masm); |
| (...skipping 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2413 int MinorKey() { return 0; } | 2417 int MinorKey() { return 0; } |
| 2414 | 2418 |
| 2415 void Generate(MacroAssembler* masm); | 2419 void Generate(MacroAssembler* masm); |
| 2416 | 2420 |
| 2417 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 2421 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
| 2418 }; | 2422 }; |
| 2419 | 2423 |
| 2420 } } // namespace v8::internal | 2424 } } // namespace v8::internal |
| 2421 | 2425 |
| 2422 #endif // V8_CODE_STUBS_H_ | 2426 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |