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 2338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2349 } | 2349 } |
2350 } | 2350 } |
2351 | 2351 |
2352 | 2352 |
2353 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 2353 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
2354 ASSERT(ToRegister(instr->context()).is(esi)); | 2354 ASSERT(ToRegister(instr->context()).is(esi)); |
2355 ASSERT(ToRegister(instr->left()).is(edx)); | 2355 ASSERT(ToRegister(instr->left()).is(edx)); |
2356 ASSERT(ToRegister(instr->right()).is(eax)); | 2356 ASSERT(ToRegister(instr->right()).is(eax)); |
2357 ASSERT(ToRegister(instr->result()).is(eax)); | 2357 ASSERT(ToRegister(instr->result()).is(eax)); |
2358 | 2358 |
2359 BinaryOpStub stub(instr->op(), NO_OVERWRITE); | 2359 BinaryOpICStub stub(instr->op(), NO_OVERWRITE); |
2360 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 2360 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
2361 __ nop(); // Signals no inlined code. | 2361 __ nop(); // Signals no inlined code. |
2362 } | 2362 } |
2363 | 2363 |
2364 | 2364 |
2365 template<class InstrType> | 2365 template<class InstrType> |
2366 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { | 2366 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { |
2367 int left_block = instr->TrueDestination(chunk_); | 2367 int left_block = instr->TrueDestination(chunk_); |
2368 int right_block = instr->FalseDestination(chunk_); | 2368 int right_block = instr->FalseDestination(chunk_); |
2369 | 2369 |
(...skipping 4058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6428 FixedArray::kHeaderSize - kPointerSize)); | 6428 FixedArray::kHeaderSize - kPointerSize)); |
6429 __ bind(&done); | 6429 __ bind(&done); |
6430 } | 6430 } |
6431 | 6431 |
6432 | 6432 |
6433 #undef __ | 6433 #undef __ |
6434 | 6434 |
6435 } } // namespace v8::internal | 6435 } } // namespace v8::internal |
6436 | 6436 |
6437 #endif // V8_TARGET_ARCH_IA32 | 6437 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |