OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 3884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3895 Load(args->at(0)); | 3895 Load(args->at(0)); |
3896 Load(args->at(1)); | 3896 Load(args->at(1)); |
3897 | 3897 |
3898 StringAddStub stub(NO_STRING_ADD_FLAGS); | 3898 StringAddStub stub(NO_STRING_ADD_FLAGS); |
3899 Result answer = frame_->CallStub(&stub, 2); | 3899 Result answer = frame_->CallStub(&stub, 2); |
3900 frame_->Push(&answer); | 3900 frame_->Push(&answer); |
3901 } | 3901 } |
3902 | 3902 |
3903 | 3903 |
3904 void CodeGenerator::GenerateSubString(ZoneList<Expression*>* args) { | 3904 void CodeGenerator::GenerateSubString(ZoneList<Expression*>* args) { |
3905 ASSERT_EQ(2, args->length()); | 3905 ASSERT_EQ(3, args->length()); |
3906 | 3906 |
3907 Load(args->at(0)); | 3907 Load(args->at(0)); |
3908 Load(args->at(1)); | 3908 Load(args->at(1)); |
3909 Load(args->at(2)); | 3909 Load(args->at(2)); |
3910 | 3910 |
3911 Result answer = frame_->CallRuntime(Runtime::kSubString, 3); | 3911 Result answer = frame_->CallRuntime(Runtime::kSubString, 3); |
3912 frame_->Push(&answer); | 3912 frame_->Push(&answer); |
3913 } | 3913 } |
3914 | 3914 |
3915 | 3915 |
(...skipping 4146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8062 masm.GetCode(&desc); | 8062 masm.GetCode(&desc); |
8063 // Call the function from C++. | 8063 // Call the function from C++. |
8064 return FUNCTION_CAST<ModuloFunction>(buffer); | 8064 return FUNCTION_CAST<ModuloFunction>(buffer); |
8065 } | 8065 } |
8066 | 8066 |
8067 #endif | 8067 #endif |
8068 | 8068 |
8069 #undef __ | 8069 #undef __ |
8070 | 8070 |
8071 } } // namespace v8::internal | 8071 } } // namespace v8::internal |
OLD | NEW |