| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 virtual void InitializeInterfaceDescriptor( | 465 virtual void InitializeInterfaceDescriptor( |
| 466 Isolate* isolate, | 466 Isolate* isolate, |
| 467 CodeStubInterfaceDescriptor* descriptor); | 467 CodeStubInterfaceDescriptor* descriptor); |
| 468 | 468 |
| 469 private: | 469 private: |
| 470 Major MajorKey() { return ToNumber; } | 470 Major MajorKey() { return ToNumber; } |
| 471 int NotMissMinorKey() { return 0; } | 471 int NotMissMinorKey() { return 0; } |
| 472 }; | 472 }; |
| 473 | 473 |
| 474 | 474 |
| 475 class NumberToStringStub V8_FINAL : public HydrogenCodeStub { |
| 476 public: |
| 477 NumberToStringStub() {} |
| 478 |
| 479 virtual Handle<Code> GenerateCode(Isolate* isolate) V8_OVERRIDE; |
| 480 |
| 481 virtual void InitializeInterfaceDescriptor( |
| 482 Isolate* isolate, |
| 483 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE; |
| 484 |
| 485 // Parameters accessed via CodeStubGraphBuilder::GetParameter() |
| 486 static const int kNumber = 0; |
| 487 |
| 488 private: |
| 489 virtual Major MajorKey() V8_OVERRIDE { return NumberToString; } |
| 490 virtual int NotMissMinorKey() V8_OVERRIDE { return 0; } |
| 491 }; |
| 492 |
| 493 |
| 475 class FastNewClosureStub : public HydrogenCodeStub { | 494 class FastNewClosureStub : public HydrogenCodeStub { |
| 476 public: | 495 public: |
| 477 explicit FastNewClosureStub(LanguageMode language_mode, bool is_generator) | 496 explicit FastNewClosureStub(LanguageMode language_mode, bool is_generator) |
| 478 : language_mode_(language_mode), | 497 : language_mode_(language_mode), |
| 479 is_generator_(is_generator) { } | 498 is_generator_(is_generator) { } |
| 480 | 499 |
| 481 virtual Handle<Code> GenerateCode(Isolate* isolate); | 500 virtual Handle<Code> GenerateCode(Isolate* isolate); |
| 482 | 501 |
| 483 virtual void InitializeInterfaceDescriptor( | 502 virtual void InitializeInterfaceDescriptor( |
| 484 Isolate* isolate, | 503 Isolate* isolate, |
| (...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2330 int MinorKey() { return 0; } | 2349 int MinorKey() { return 0; } |
| 2331 | 2350 |
| 2332 void Generate(MacroAssembler* masm); | 2351 void Generate(MacroAssembler* masm); |
| 2333 | 2352 |
| 2334 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 2353 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
| 2335 }; | 2354 }; |
| 2336 | 2355 |
| 2337 } } // namespace v8::internal | 2356 } } // namespace v8::internal |
| 2338 | 2357 |
| 2339 #endif // V8_CODE_STUBS_H_ | 2358 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |