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

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

Issue 218403006: Check that environments assigned via AssignEnvironment are actually used. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Simplified. Rebased. Created 6 years, 8 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/lithium-codegen.cc ('k') | src/x64/lithium-x64.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 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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 LoadContextFromDeferred(context); 680 LoadContextFromDeferred(context);
681 681
682 __ CallRuntimeSaveDoubles(id); 682 __ CallRuntimeSaveDoubles(id);
683 RecordSafepointWithRegisters( 683 RecordSafepointWithRegisters(
684 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); 684 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt);
685 } 685 }
686 686
687 687
688 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment, 688 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment,
689 Safepoint::DeoptMode mode) { 689 Safepoint::DeoptMode mode) {
690 environment->set_has_been_used();
690 if (!environment->HasBeenRegistered()) { 691 if (!environment->HasBeenRegistered()) {
691 // Physical stack frame layout: 692 // Physical stack frame layout:
692 // -x ............. -4 0 ..................................... y 693 // -x ............. -4 0 ..................................... y
693 // [incoming arguments] [spill slots] [pushed outgoing arguments] 694 // [incoming arguments] [spill slots] [pushed outgoing arguments]
694 695
695 // Layout of the environment: 696 // Layout of the environment:
696 // 0 ..................................................... size-1 697 // 0 ..................................................... size-1
697 // [parameters] [locals] [expression stack including arguments] 698 // [parameters] [locals] [expression stack including arguments]
698 699
699 // Layout of the translation: 700 // Layout of the translation:
(...skipping 4980 matching lines...) Expand 10 before | Expand all | Expand 10 after
5680 __ bind(deferred->exit()); 5681 __ bind(deferred->exit());
5681 __ bind(&done); 5682 __ bind(&done);
5682 } 5683 }
5683 5684
5684 5685
5685 #undef __ 5686 #undef __
5686 5687
5687 } } // namespace v8::internal 5688 } } // namespace v8::internal
5688 5689
5689 #endif // V8_TARGET_ARCH_X64 5690 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/lithium-codegen.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698