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

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

Issue 7063017: Rename TypeRecording...Stub into ...Stub. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 7 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 | « src/x64/full-codegen-x64.cc ('k') | no next file » | 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 SafepointMode safepoint_mode, 446 SafepointMode safepoint_mode,
447 int argc) { 447 int argc) {
448 ASSERT(instr != NULL); 448 ASSERT(instr != NULL);
449 LPointerMap* pointers = instr->pointer_map(); 449 LPointerMap* pointers = instr->pointer_map();
450 RecordPosition(pointers->position()); 450 RecordPosition(pointers->position());
451 __ call(code, mode); 451 __ call(code, mode);
452 RegisterLazyDeoptimization(instr, safepoint_mode, argc); 452 RegisterLazyDeoptimization(instr, safepoint_mode, argc);
453 453
454 // Signal that we don't inline smi code before these stubs in the 454 // Signal that we don't inline smi code before these stubs in the
455 // optimizing code generator. 455 // optimizing code generator.
456 if (code->kind() == Code::TYPE_RECORDING_BINARY_OP_IC || 456 if (code->kind() == Code::BINARY_OP_IC ||
457 code->kind() == Code::COMPARE_IC) { 457 code->kind() == Code::COMPARE_IC) {
458 __ nop(); 458 __ nop();
459 } 459 }
460 } 460 }
461 461
462 462
463 void LCodeGen::CallCode(Handle<Code> code, 463 void LCodeGen::CallCode(Handle<Code> code,
464 RelocInfo::Mode mode, 464 RelocInfo::Mode mode,
465 LInstruction* instr) { 465 LInstruction* instr) {
466 CallCodeGeneric(code, mode, instr, RECORD_SIMPLE_SAFEPOINT, 0); 466 CallCodeGeneric(code, mode, instr, RECORD_SIMPLE_SAFEPOINT, 0);
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 break; 1287 break;
1288 } 1288 }
1289 } 1289 }
1290 1290
1291 1291
1292 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { 1292 void LCodeGen::DoArithmeticT(LArithmeticT* instr) {
1293 ASSERT(ToRegister(instr->InputAt(0)).is(rdx)); 1293 ASSERT(ToRegister(instr->InputAt(0)).is(rdx));
1294 ASSERT(ToRegister(instr->InputAt(1)).is(rax)); 1294 ASSERT(ToRegister(instr->InputAt(1)).is(rax));
1295 ASSERT(ToRegister(instr->result()).is(rax)); 1295 ASSERT(ToRegister(instr->result()).is(rax));
1296 1296
1297 TypeRecordingBinaryOpStub stub(instr->op(), NO_OVERWRITE); 1297 BinaryOpStub stub(instr->op(), NO_OVERWRITE);
1298 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 1298 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
1299 } 1299 }
1300 1300
1301 1301
1302 int LCodeGen::GetNextEmittedBlock(int block) { 1302 int LCodeGen::GetNextEmittedBlock(int block) {
1303 for (int i = block + 1; i < graph()->blocks()->length(); ++i) { 1303 for (int i = block + 1; i < graph()->blocks()->length(); ++i) {
1304 LLabel* label = chunk_->GetLabel(i); 1304 LLabel* label = chunk_->GetLabel(i);
1305 if (!label->HasReplacement()) return i; 1305 if (!label->HasReplacement()) return i;
1306 } 1306 }
1307 return -1; 1307 return -1;
(...skipping 2928 matching lines...) Expand 10 before | Expand all | Expand 10 after
4236 RegisterEnvironmentForDeoptimization(environment); 4236 RegisterEnvironmentForDeoptimization(environment);
4237 ASSERT(osr_pc_offset_ == -1); 4237 ASSERT(osr_pc_offset_ == -1);
4238 osr_pc_offset_ = masm()->pc_offset(); 4238 osr_pc_offset_ = masm()->pc_offset();
4239 } 4239 }
4240 4240
4241 #undef __ 4241 #undef __
4242 4242
4243 } } // namespace v8::internal 4243 } } // namespace v8::internal
4244 4244
4245 #endif // V8_TARGET_ARCH_X64 4245 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698