| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 | 945 |
| 946 void LCodeGen::DoParameter(LParameter* instr) { | 946 void LCodeGen::DoParameter(LParameter* instr) { |
| 947 // Nothing to do. | 947 // Nothing to do. |
| 948 } | 948 } |
| 949 | 949 |
| 950 | 950 |
| 951 void LCodeGen::DoCallStub(LCallStub* instr) { | 951 void LCodeGen::DoCallStub(LCallStub* instr) { |
| 952 ASSERT(ToRegister(instr->context()).is(rsi)); | 952 ASSERT(ToRegister(instr->context()).is(rsi)); |
| 953 ASSERT(ToRegister(instr->result()).is(rax)); | 953 ASSERT(ToRegister(instr->result()).is(rax)); |
| 954 switch (instr->hydrogen()->major_key()) { | 954 switch (instr->hydrogen()->major_key()) { |
| 955 case CodeStub::RegExpConstructResult: { | |
| 956 RegExpConstructResultStub stub; | |
| 957 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | |
| 958 break; | |
| 959 } | |
| 960 case CodeStub::RegExpExec: { | 955 case CodeStub::RegExpExec: { |
| 961 RegExpExecStub stub; | 956 RegExpExecStub stub; |
| 962 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 957 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 963 break; | 958 break; |
| 964 } | 959 } |
| 965 case CodeStub::SubString: { | 960 case CodeStub::SubString: { |
| 966 SubStringStub stub; | 961 SubStringStub stub; |
| 967 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 962 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 968 break; | 963 break; |
| 969 } | 964 } |
| (...skipping 4628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5598 FixedArray::kHeaderSize - kPointerSize)); | 5593 FixedArray::kHeaderSize - kPointerSize)); |
| 5599 __ bind(&done); | 5594 __ bind(&done); |
| 5600 } | 5595 } |
| 5601 | 5596 |
| 5602 | 5597 |
| 5603 #undef __ | 5598 #undef __ |
| 5604 | 5599 |
| 5605 } } // namespace v8::internal | 5600 } } // namespace v8::internal |
| 5606 | 5601 |
| 5607 #endif // V8_TARGET_ARCH_X64 | 5602 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |