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

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

Issue 141703018: Turn RegExpConstructResultStub into a HydrogenCodeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 10 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
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 RegExpExecStub() { } 1586 RegExpExecStub() { }
1587 1587
1588 private: 1588 private:
1589 Major MajorKey() { return RegExpExec; } 1589 Major MajorKey() { return RegExpExec; }
1590 int MinorKey() { return 0; } 1590 int MinorKey() { return 0; }
1591 1591
1592 void Generate(MacroAssembler* masm); 1592 void Generate(MacroAssembler* masm);
1593 }; 1593 };
1594 1594
1595 1595
1596 class RegExpConstructResultStub: public PlatformCodeStub { 1596 class RegExpConstructResultStub V8_FINAL : public HydrogenCodeStub {
1597 public: 1597 public:
1598 RegExpConstructResultStub() { } 1598 RegExpConstructResultStub() { }
1599 1599
1600 virtual Handle<Code> GenerateCode(Isolate* isolate) V8_OVERRIDE;
1601
1602 virtual void InitializeInterfaceDescriptor(
1603 Isolate* isolate,
1604 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE;
1605
1606 virtual Major MajorKey() V8_OVERRIDE { return RegExpConstructResult; }
1607 virtual int NotMissMinorKey() V8_OVERRIDE { return 0; }
1608
1609 static void InstallDescriptors(Isolate* isolate);
1610
1611 // Parameters accessed via CodeStubGraphBuilder::GetParameter()
1612 static const int kLength = 0;
1613 static const int kIndex = 1;
1614 static const int kInput = 2;
1615
1600 private: 1616 private:
1601 Major MajorKey() { return RegExpConstructResult; } 1617 DISALLOW_COPY_AND_ASSIGN(RegExpConstructResultStub);
1602 int MinorKey() { return 0; }
1603
1604 void Generate(MacroAssembler* masm);
1605 }; 1618 };
1606 1619
1607 1620
1608 class CallFunctionStub: public PlatformCodeStub { 1621 class CallFunctionStub: public PlatformCodeStub {
1609 public: 1622 public:
1610 CallFunctionStub(int argc, CallFunctionFlags flags) 1623 CallFunctionStub(int argc, CallFunctionFlags flags)
1611 : argc_(argc), flags_(flags) { } 1624 : argc_(argc), flags_(flags) { }
1612 1625
1613 void Generate(MacroAssembler* masm); 1626 void Generate(MacroAssembler* masm);
1614 1627
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
2508 2521
2509 2522
2510 class CallDescriptors { 2523 class CallDescriptors {
2511 public: 2524 public:
2512 static void InitializeForIsolate(Isolate* isolate); 2525 static void InitializeForIsolate(Isolate* isolate);
2513 }; 2526 };
2514 2527
2515 } } // namespace v8::internal 2528 } } // namespace v8::internal
2516 2529
2517 #endif // V8_CODE_STUBS_H_ 2530 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698