| 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 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 } | 1944 } |
| 1945 } | 1945 } |
| 1946 | 1946 |
| 1947 | 1947 |
| 1948 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 1948 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
| 1949 ASSERT(ToRegister(instr->context()).is(rsi)); | 1949 ASSERT(ToRegister(instr->context()).is(rsi)); |
| 1950 ASSERT(ToRegister(instr->left()).is(rdx)); | 1950 ASSERT(ToRegister(instr->left()).is(rdx)); |
| 1951 ASSERT(ToRegister(instr->right()).is(rax)); | 1951 ASSERT(ToRegister(instr->right()).is(rax)); |
| 1952 ASSERT(ToRegister(instr->result()).is(rax)); | 1952 ASSERT(ToRegister(instr->result()).is(rax)); |
| 1953 | 1953 |
| 1954 BinaryOpStub stub(instr->op(), NO_OVERWRITE); | 1954 BinaryOpICStub stub(instr->op(), NO_OVERWRITE); |
| 1955 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 1955 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 1956 __ nop(); // Signals no inlined code. | 1956 __ nop(); // Signals no inlined code. |
| 1957 } | 1957 } |
| 1958 | 1958 |
| 1959 | 1959 |
| 1960 template<class InstrType> | 1960 template<class InstrType> |
| 1961 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { | 1961 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { |
| 1962 int left_block = instr->TrueDestination(chunk_); | 1962 int left_block = instr->TrueDestination(chunk_); |
| 1963 int right_block = instr->FalseDestination(chunk_); | 1963 int right_block = instr->FalseDestination(chunk_); |
| 1964 | 1964 |
| (...skipping 3674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5639 FixedArray::kHeaderSize - kPointerSize)); | 5639 FixedArray::kHeaderSize - kPointerSize)); |
| 5640 __ bind(&done); | 5640 __ bind(&done); |
| 5641 } | 5641 } |
| 5642 | 5642 |
| 5643 | 5643 |
| 5644 #undef __ | 5644 #undef __ |
| 5645 | 5645 |
| 5646 } } // namespace v8::internal | 5646 } } // namespace v8::internal |
| 5647 | 5647 |
| 5648 #endif // V8_TARGET_ARCH_X64 | 5648 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |