Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 7351015: Merge r8623 to the 3.3 branch (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.3/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 535
536 void LCodeGen::CallCodeGeneric(Handle<Code> code, 536 void LCodeGen::CallCodeGeneric(Handle<Code> code,
537 RelocInfo::Mode mode, 537 RelocInfo::Mode mode,
538 LInstruction* instr, 538 LInstruction* instr,
539 SafepointMode safepoint_mode) { 539 SafepointMode safepoint_mode) {
540 ASSERT(instr != NULL); 540 ASSERT(instr != NULL);
541 LPointerMap* pointers = instr->pointer_map(); 541 LPointerMap* pointers = instr->pointer_map();
542 RecordPosition(pointers->position()); 542 RecordPosition(pointers->position());
543 __ Call(code, mode); 543 __ Call(code, mode);
544 RegisterLazyDeoptimization(instr, safepoint_mode); 544 RegisterLazyDeoptimization(instr, safepoint_mode);
545
546 // Signal that we don't inline smi code before these stubs in the
547 // optimizing code generator.
548 if (code->kind() == Code::BINARY_OP_IC ||
549 code->kind() == Code::COMPARE_IC) {
550 __ nop();
551 }
545 } 552 }
546 553
547 554
548 void LCodeGen::CallRuntime(const Runtime::Function* function, 555 void LCodeGen::CallRuntime(const Runtime::Function* function,
549 int num_arguments, 556 int num_arguments,
550 LInstruction* instr) { 557 LInstruction* instr) {
551 ASSERT(instr != NULL); 558 ASSERT(instr != NULL);
552 LPointerMap* pointers = instr->pointer_map(); 559 LPointerMap* pointers = instr->pointer_map();
553 ASSERT(pointers != NULL); 560 ASSERT(pointers != NULL);
554 RecordPosition(pointers->position()); 561 RecordPosition(pointers->position());
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 } 1417 }
1411 1418
1412 1419
1413 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { 1420 void LCodeGen::DoArithmeticT(LArithmeticT* instr) {
1414 ASSERT(ToRegister(instr->InputAt(0)).is(r1)); 1421 ASSERT(ToRegister(instr->InputAt(0)).is(r1));
1415 ASSERT(ToRegister(instr->InputAt(1)).is(r0)); 1422 ASSERT(ToRegister(instr->InputAt(1)).is(r0));
1416 ASSERT(ToRegister(instr->result()).is(r0)); 1423 ASSERT(ToRegister(instr->result()).is(r0));
1417 1424
1418 BinaryOpStub stub(instr->op(), NO_OVERWRITE); 1425 BinaryOpStub stub(instr->op(), NO_OVERWRITE);
1419 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 1426 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
1427 __ nop(); // Signals no inlined code.
1420 } 1428 }
1421 1429
1422 1430
1423 int LCodeGen::GetNextEmittedBlock(int block) { 1431 int LCodeGen::GetNextEmittedBlock(int block) {
1424 for (int i = block + 1; i < graph()->blocks()->length(); ++i) { 1432 for (int i = block + 1; i < graph()->blocks()->length(); ++i) {
1425 LLabel* label = chunk_->GetLabel(i); 1433 LLabel* label = chunk_->GetLabel(i);
1426 if (!label->HasReplacement()) return i; 1434 if (!label->HasReplacement()) return i;
1427 } 1435 }
1428 return -1; 1436 return -1;
1429 } 1437 }
(...skipping 3103 matching lines...) Expand 10 before | Expand all | Expand 10 after
4533 ASSERT(osr_pc_offset_ == -1); 4541 ASSERT(osr_pc_offset_ == -1);
4534 osr_pc_offset_ = masm()->pc_offset(); 4542 osr_pc_offset_ = masm()->pc_offset();
4535 } 4543 }
4536 4544
4537 4545
4538 4546
4539 4547
4540 #undef __ 4548 #undef __
4541 4549
4542 } } // namespace v8::internal 4550 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698