| 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 state.fixed_right_arg(), allocation_mode); | 993 state.fixed_right_arg(), allocation_mode); |
| 994 } | 994 } |
| 995 | 995 |
| 996 | 996 |
| 997 Handle<Code> BinaryOpWithAllocationSiteStub::GenerateCode(Isolate* isolate) { | 997 Handle<Code> BinaryOpWithAllocationSiteStub::GenerateCode(Isolate* isolate) { |
| 998 return DoGenerateCode(isolate, this); | 998 return DoGenerateCode(isolate, this); |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 | 1001 |
| 1002 template <> | 1002 template <> |
| 1003 HValue* CodeStubGraphBuilder<NewStringAddStub>::BuildCodeInitializedStub() { | 1003 HValue* CodeStubGraphBuilder<StringAddStub>::BuildCodeInitializedStub() { |
| 1004 NewStringAddStub* stub = casted_stub(); | 1004 StringAddStub* stub = casted_stub(); |
| 1005 StringAddFlags flags = stub->flags(); | 1005 StringAddFlags flags = stub->flags(); |
| 1006 PretenureFlag pretenure_flag = stub->pretenure_flag(); | 1006 PretenureFlag pretenure_flag = stub->pretenure_flag(); |
| 1007 | 1007 |
| 1008 HValue* left = GetParameter(NewStringAddStub::kLeft); | 1008 HValue* left = GetParameter(StringAddStub::kLeft); |
| 1009 HValue* right = GetParameter(NewStringAddStub::kRight); | 1009 HValue* right = GetParameter(StringAddStub::kRight); |
| 1010 | 1010 |
| 1011 // Make sure that both arguments are strings if not known in advance. | 1011 // Make sure that both arguments are strings if not known in advance. |
| 1012 if ((flags & STRING_ADD_CHECK_LEFT) == STRING_ADD_CHECK_LEFT) { | 1012 if ((flags & STRING_ADD_CHECK_LEFT) == STRING_ADD_CHECK_LEFT) { |
| 1013 left = BuildCheckString(left); | 1013 left = BuildCheckString(left); |
| 1014 } | 1014 } |
| 1015 if ((flags & STRING_ADD_CHECK_RIGHT) == STRING_ADD_CHECK_RIGHT) { | 1015 if ((flags & STRING_ADD_CHECK_RIGHT) == STRING_ADD_CHECK_RIGHT) { |
| 1016 right = BuildCheckString(right); | 1016 right = BuildCheckString(right); |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 return BuildStringAdd(left, right, HAllocationMode(pretenure_flag)); | 1019 return BuildStringAdd(left, right, HAllocationMode(pretenure_flag)); |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 | 1022 |
| 1023 Handle<Code> NewStringAddStub::GenerateCode(Isolate* isolate) { | 1023 Handle<Code> StringAddStub::GenerateCode(Isolate* isolate) { |
| 1024 return DoGenerateCode(isolate, this); | 1024 return DoGenerateCode(isolate, this); |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 | 1027 |
| 1028 template <> | 1028 template <> |
| 1029 HValue* CodeStubGraphBuilder<ToBooleanStub>::BuildCodeInitializedStub() { | 1029 HValue* CodeStubGraphBuilder<ToBooleanStub>::BuildCodeInitializedStub() { |
| 1030 ToBooleanStub* stub = casted_stub(); | 1030 ToBooleanStub* stub = casted_stub(); |
| 1031 | 1031 |
| 1032 IfBuilder if_true(this); | 1032 IfBuilder if_true(this); |
| 1033 if_true.If<HBranch>(GetParameter(0), stub->GetTypes()); | 1033 if_true.If<HBranch>(GetParameter(0), stub->GetTypes()); |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1339 return BuildUncheckedDictionaryElementLoad(receiver, key); | 1339 return BuildUncheckedDictionaryElementLoad(receiver, key); |
| 1340 } | 1340 } |
| 1341 | 1341 |
| 1342 | 1342 |
| 1343 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { | 1343 Handle<Code> KeyedLoadDictionaryElementStub::GenerateCode(Isolate* isolate) { |
| 1344 return DoGenerateCode(isolate, this); | 1344 return DoGenerateCode(isolate, this); |
| 1345 } | 1345 } |
| 1346 | 1346 |
| 1347 | 1347 |
| 1348 } } // namespace v8::internal | 1348 } } // namespace v8::internal |
| OLD | NEW |