OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 421 |
422 if (context_mode == RESTORE_CONTEXT) { | 422 if (context_mode == RESTORE_CONTEXT) { |
423 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 423 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
424 } | 424 } |
425 __ call(code, mode); | 425 __ call(code, mode); |
426 | 426 |
427 RegisterLazyDeoptimization(instr, safepoint_mode); | 427 RegisterLazyDeoptimization(instr, safepoint_mode); |
428 | 428 |
429 // Signal that we don't inline smi code before these stubs in the | 429 // Signal that we don't inline smi code before these stubs in the |
430 // optimizing code generator. | 430 // optimizing code generator. |
431 if (code->kind() == Code::TYPE_RECORDING_BINARY_OP_IC || | 431 if (code->kind() == Code::BINARY_OP_IC || |
432 code->kind() == Code::COMPARE_IC) { | 432 code->kind() == Code::COMPARE_IC) { |
433 __ nop(); | 433 __ nop(); |
434 } | 434 } |
435 } | 435 } |
436 | 436 |
437 | 437 |
438 void LCodeGen::CallCode(Handle<Code> code, | 438 void LCodeGen::CallCode(Handle<Code> code, |
439 RelocInfo::Mode mode, | 439 RelocInfo::Mode mode, |
440 LInstruction* instr, | 440 LInstruction* instr, |
441 ContextMode context_mode) { | 441 ContextMode context_mode) { |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 break; | 1293 break; |
1294 } | 1294 } |
1295 } | 1295 } |
1296 | 1296 |
1297 | 1297 |
1298 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { | 1298 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
1299 ASSERT(ToRegister(instr->InputAt(0)).is(edx)); | 1299 ASSERT(ToRegister(instr->InputAt(0)).is(edx)); |
1300 ASSERT(ToRegister(instr->InputAt(1)).is(eax)); | 1300 ASSERT(ToRegister(instr->InputAt(1)).is(eax)); |
1301 ASSERT(ToRegister(instr->result()).is(eax)); | 1301 ASSERT(ToRegister(instr->result()).is(eax)); |
1302 | 1302 |
1303 TypeRecordingBinaryOpStub stub(instr->op(), NO_OVERWRITE); | 1303 BinaryOpStub stub(instr->op(), NO_OVERWRITE); |
1304 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr, RESTORE_CONTEXT); | 1304 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr, RESTORE_CONTEXT); |
1305 } | 1305 } |
1306 | 1306 |
1307 | 1307 |
1308 int LCodeGen::GetNextEmittedBlock(int block) { | 1308 int LCodeGen::GetNextEmittedBlock(int block) { |
1309 for (int i = block + 1; i < graph()->blocks()->length(); ++i) { | 1309 for (int i = block + 1; i < graph()->blocks()->length(); ++i) { |
1310 LLabel* label = chunk_->GetLabel(i); | 1310 LLabel* label = chunk_->GetLabel(i); |
1311 if (!label->HasReplacement()) return i; | 1311 if (!label->HasReplacement()) return i; |
1312 } | 1312 } |
1313 return -1; | 1313 return -1; |
(...skipping 3116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4430 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 4430 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
4431 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4431 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
4432 } | 4432 } |
4433 | 4433 |
4434 | 4434 |
4435 #undef __ | 4435 #undef __ |
4436 | 4436 |
4437 } } // namespace v8::internal | 4437 } } // namespace v8::internal |
4438 | 4438 |
4439 #endif // V8_TARGET_ARCH_IA32 | 4439 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |