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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 virtual void InitializeInterfaceDescriptor( | 457 virtual void InitializeInterfaceDescriptor( |
458 Isolate* isolate, | 458 Isolate* isolate, |
459 CodeStubInterfaceDescriptor* descriptor); | 459 CodeStubInterfaceDescriptor* descriptor); |
460 | 460 |
461 private: | 461 private: |
462 Major MajorKey() { return ToNumber; } | 462 Major MajorKey() { return ToNumber; } |
463 int NotMissMinorKey() { return 0; } | 463 int NotMissMinorKey() { return 0; } |
464 }; | 464 }; |
465 | 465 |
466 | 466 |
467 class NumberToStringStub V8_FINAL : public HydrogenCodeStub { | |
468 public: | |
469 NumberToStringStub() {} | |
470 | |
471 virtual Handle<Code> GenerateCode(Isolate* isolate) V8_OVERRIDE; | |
472 | |
473 virtual void InitializeInterfaceDescriptor( | |
474 Isolate* isolate, | |
475 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE; | |
476 | |
477 // Parameters accessed via CodeStubGraphBuilder::GetParameter() | |
478 static const int kNumber = 0; | |
479 | |
480 private: | |
481 virtual Major MajorKey() V8_OVERRIDE { return NumberToString; } | |
482 virtual int NotMissMinorKey() V8_OVERRIDE { return 0; } | |
483 }; | |
484 | |
485 | |
486 class FastNewClosureStub : public HydrogenCodeStub { | 467 class FastNewClosureStub : public HydrogenCodeStub { |
487 public: | 468 public: |
488 explicit FastNewClosureStub(LanguageMode language_mode, bool is_generator) | 469 explicit FastNewClosureStub(LanguageMode language_mode, bool is_generator) |
489 : language_mode_(language_mode), | 470 : language_mode_(language_mode), |
490 is_generator_(is_generator) { } | 471 is_generator_(is_generator) { } |
491 | 472 |
492 virtual Handle<Code> GenerateCode(Isolate* isolate); | 473 virtual Handle<Code> GenerateCode(Isolate* isolate); |
493 | 474 |
494 virtual void InitializeInterfaceDescriptor( | 475 virtual void InitializeInterfaceDescriptor( |
495 Isolate* isolate, | 476 Isolate* isolate, |
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2319 int MinorKey() { return 0; } | 2300 int MinorKey() { return 0; } |
2320 | 2301 |
2321 void Generate(MacroAssembler* masm); | 2302 void Generate(MacroAssembler* masm); |
2322 | 2303 |
2323 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 2304 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
2324 }; | 2305 }; |
2325 | 2306 |
2326 } } // namespace v8::internal | 2307 } } // namespace v8::internal |
2327 | 2308 |
2328 #endif // V8_CODE_STUBS_H_ | 2309 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |