Chromium Code Reviews| Index: src/code-stubs.cc |
| diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
| index e68a5dd0c8bbf12a67d9399b6add259539f8cd96..4abfcafa9208dd44337c64226464b529e9d1d2ca 100644 |
| --- a/src/code-stubs.cc |
| +++ b/src/code-stubs.cc |
| @@ -681,6 +681,21 @@ Handle<Type> BinaryOpStub::GetResultType(Isolate* isolate) const { |
| } |
| +void NewStringAddStub::PrintBaseName(StringStream* stream) { |
|
mvstanton
2013/11/08 10:17:50
Wow, I'm going to add this to some of my own stubs
|
| + stream->Add("NewStringAddStub"); |
| + if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_BOTH) { |
| + stream->Add("_CheckBoth"); |
| + } else if ((flags() & STRING_ADD_CHECK_LEFT) == STRING_ADD_CHECK_LEFT) { |
| + stream->Add("_CheckLeft"); |
| + } else if ((flags() & STRING_ADD_CHECK_RIGHT) == STRING_ADD_CHECK_RIGHT) { |
| + stream->Add("_CheckRight"); |
| + } |
| + if (pretenure_flag() == TENURED) { |
| + stream->Add("_Tenured"); |
| + } |
| +} |
| + |
| + |
| InlineCacheState ICCompareStub::GetICState() { |
| CompareIC::State state = Max(left_, right_); |
| switch (state) { |
| @@ -1133,6 +1148,13 @@ void FastNewClosureStub::InstallDescriptors(Isolate* isolate) { |
| } |
| +// static |
| +void NewStringAddStub::InstallDescriptors(Isolate* isolate) { |
| + NewStringAddStub stub(STRING_ADD_CHECK_NONE, NOT_TENURED); |
| + InstallDescriptor(isolate, &stub); |
| +} |
| + |
| + |
| ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) |
| : argument_count_(ANY) { |
| ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |