| 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 2277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2288 } | 2288 } |
| 2289 } | 2289 } |
| 2290 | 2290 |
| 2291 | 2291 |
| 2292 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2292 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
| 2293 ASSERT(ToRegister(instr->context()).is(esi)); | 2293 ASSERT(ToRegister(instr->context()).is(esi)); |
| 2294 ASSERT(ToRegister(instr->left()).is(edx)); | 2294 ASSERT(ToRegister(instr->left()).is(edx)); |
| 2295 ASSERT(ToRegister(instr->right()).is(eax)); | 2295 ASSERT(ToRegister(instr->right()).is(eax)); |
| 2296 ASSERT(ToRegister(instr->result()).is(eax)); | 2296 ASSERT(ToRegister(instr->result()).is(eax)); |
| 2297 | 2297 |
| 2298 BinaryOpStub stub(instr->op(), NO_OVERWRITE); | 2298 BinaryOpStub stub(instr->op()); |
| 2299 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 2299 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 2300 __ nop(); // Signals no inlined code. | 2300 __ nop(); // Signals no inlined code. |
| 2301 } | 2301 } |
| 2302 | 2302 |
| 2303 | 2303 |
| 2304 int LCodeGen::GetNextEmittedBlock() const { | 2304 int LCodeGen::GetNextEmittedBlock() const { |
| 2305 for (int i = current_block_ + 1; i < graph()->blocks()->length(); ++i) { | 2305 for (int i = current_block_ + 1; i < graph()->blocks()->length(); ++i) { |
| 2306 if (!chunk_->GetLabel(i)->HasReplacement()) return i; | 2306 if (!chunk_->GetLabel(i)->HasReplacement()) return i; |
| 2307 } | 2307 } |
| 2308 return -1; | 2308 return -1; |
| (...skipping 4050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6359 FixedArray::kHeaderSize - kPointerSize)); | 6359 FixedArray::kHeaderSize - kPointerSize)); |
| 6360 __ bind(&done); | 6360 __ bind(&done); |
| 6361 } | 6361 } |
| 6362 | 6362 |
| 6363 | 6363 |
| 6364 #undef __ | 6364 #undef __ |
| 6365 | 6365 |
| 6366 } } // namespace v8::internal | 6366 } } // namespace v8::internal |
| 6367 | 6367 |
| 6368 #endif // V8_TARGET_ARCH_IA32 | 6368 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |