Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 07e34be578b2a6533b5c2759b5281901af41043d..79043d5e0f6a0a956d08fe1dbdf0d74dcdf20b98 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -486,6 +486,13 @@ class ToNumberStub: public HydrogenCodeStub { |
Isolate* isolate, |
CodeStubInterfaceDescriptor* descriptor); |
+ static void InstallDescriptors(Isolate* isolate) { |
+ ToNumberStub stub; |
+ stub.InitializeInterfaceDescriptor( |
+ isolate, |
+ isolate->code_stub_interface_descriptor(CodeStub::ToNumber)); |
+ } |
+ |
private: |
Major MajorKey() { return ToNumber; } |
int NotMissMinorKey() { return 0; } |
@@ -624,6 +631,8 @@ class FastCloneShallowArrayStub : public HydrogenCodeStub { |
Isolate* isolate, |
CodeStubInterfaceDescriptor* descriptor); |
+ static void InstallDescriptors(Isolate* isolate); |
+ |
private: |
Mode mode_; |
AllocationSiteMode allocation_site_mode_; |
@@ -1375,7 +1384,7 @@ class CompareNilICStub : public HydrogenCodeStub { |
Isolate* isolate, |
CodeStubInterfaceDescriptor* descriptor); |
- static void InitializeForIsolate(Isolate* isolate) { |
+ static void InstallDescriptors(Isolate* isolate) { |
CompareNilICStub compare_stub(kNullValue, UNINITIALIZED); |
compare_stub.InitializeInterfaceDescriptor( |
isolate, |
@@ -2332,7 +2341,7 @@ class ToBooleanStub: public HydrogenCodeStub { |
virtual bool SometimesSetsUpAFrame() { return false; } |
- static void InitializeForIsolate(Isolate* isolate) { |
+ static void InstallDescriptors(Isolate* isolate) { |
ToBooleanStub stub; |
stub.InitializeInterfaceDescriptor( |
isolate, |