Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: src/code-stubs.h

Issue 23726041: Turn the NumberToStringStub into a hydrogen stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Using IfBuilder with JoinContinuation Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
mvstanton 2013/09/23 09:32:34 Here is a good place for something like: static
Benedikt Meurer 2013/09/23 10:53:31 Done.
477 private:
478 virtual Major MajorKey() V8_OVERRIDE { return NumberToString; }
479 virtual int NotMissMinorKey() V8_OVERRIDE { return 0; }
480 };
481
482
467 class FastNewClosureStub : public HydrogenCodeStub { 483 class FastNewClosureStub : public HydrogenCodeStub {
468 public: 484 public:
469 explicit FastNewClosureStub(LanguageMode language_mode, bool is_generator) 485 explicit FastNewClosureStub(LanguageMode language_mode, bool is_generator)
470 : language_mode_(language_mode), 486 : language_mode_(language_mode),
471 is_generator_(is_generator) { } 487 is_generator_(is_generator) { }
472 488
473 virtual Handle<Code> GenerateCode(Isolate* isolate); 489 virtual Handle<Code> GenerateCode(Isolate* isolate);
474 490
475 virtual void InitializeInterfaceDescriptor( 491 virtual void InitializeInterfaceDescriptor(
476 Isolate* isolate, 492 Isolate* isolate,
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 int MinorKey() { return 0; } 2316 int MinorKey() { return 0; }
2301 2317
2302 void Generate(MacroAssembler* masm); 2318 void Generate(MacroAssembler* masm);
2303 2319
2304 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 2320 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
2305 }; 2321 };
2306 2322
2307 } } // namespace v8::internal 2323 } } // namespace v8::internal
2308 2324
2309 #endif // V8_CODE_STUBS_H_ 2325 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698