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

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

Issue 18154004: Replace custom builtin invocation instructions by a generic version (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 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 | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 5454 matching lines...) Expand 10 before | Expand all | Expand 10 after
5465 DeoptimizeIf(no_condition, instr->environment()); 5465 DeoptimizeIf(no_condition, instr->environment());
5466 } 5466 }
5467 } 5467 }
5468 5468
5469 5469
5470 void LCodeGen::DoDummyUse(LDummyUse* instr) { 5470 void LCodeGen::DoDummyUse(LDummyUse* instr) {
5471 // Nothing to see here, move on! 5471 // Nothing to see here, move on!
5472 } 5472 }
5473 5473
5474 5474
5475 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) {
5476 LOperand* obj = instr->object();
5477 LOperand* key = instr->key();
5478 EmitPushTaggedOperand(obj);
5479 EmitPushTaggedOperand(key);
5480 ASSERT(instr->HasPointerMap());
5481 LPointerMap* pointers = instr->pointer_map();
5482 RecordPosition(pointers->position());
5483 // Create safepoint generator that will also ensure enough space in the
5484 // reloc info for patching in deoptimization (since this is invoking a
5485 // builtin)
5486 SafepointGenerator safepoint_generator(
5487 this, pointers, Safepoint::kLazyDeopt);
5488 __ Push(Smi::FromInt(strict_mode_flag()));
5489 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION, safepoint_generator);
5490 }
5491
5492
5493 void LCodeGen::DoIn(LIn* instr) {
5494 LOperand* obj = instr->object();
5495 LOperand* key = instr->key();
5496 EmitPushTaggedOperand(key);
5497 EmitPushTaggedOperand(obj);
5498 ASSERT(instr->HasPointerMap());
5499 LPointerMap* pointers = instr->pointer_map();
5500 RecordPosition(pointers->position());
5501 SafepointGenerator safepoint_generator(
5502 this, pointers, Safepoint::kLazyDeopt);
5503 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator);
5504 }
5505
5506
5507 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { 5475 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) {
5508 PushSafepointRegistersScope scope(this); 5476 PushSafepointRegistersScope scope(this);
5509 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 5477 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
5510 __ CallRuntimeSaveDoubles(Runtime::kStackGuard); 5478 __ CallRuntimeSaveDoubles(Runtime::kStackGuard);
5511 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0); 5479 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0);
5512 ASSERT(instr->HasEnvironment()); 5480 ASSERT(instr->HasEnvironment());
5513 LEnvironment* env = instr->environment(); 5481 LEnvironment* env = instr->environment();
5514 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 5482 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
5515 } 5483 }
5516 5484
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
5665 FixedArray::kHeaderSize - kPointerSize)); 5633 FixedArray::kHeaderSize - kPointerSize));
5666 __ bind(&done); 5634 __ bind(&done);
5667 } 5635 }
5668 5636
5669 5637
5670 #undef __ 5638 #undef __
5671 5639
5672 } } // namespace v8::internal 5640 } } // namespace v8::internal
5673 5641
5674 #endif // V8_TARGET_ARCH_X64 5642 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698