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 4653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5623 FixedArray::kHeaderSize - kPointerSize)); | 5618 FixedArray::kHeaderSize - kPointerSize)); |
5624 __ bind(&done); | 5619 __ bind(&done); |
5625 } | 5620 } |
5626 | 5621 |
5627 | 5622 |
5628 #undef __ | 5623 #undef __ |
5629 | 5624 |
5630 } } // namespace v8::internal | 5625 } } // namespace v8::internal |
5631 | 5626 |
5632 #endif // V8_TARGET_ARCH_X64 | 5627 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |