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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/arm64/lithium-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 LOperand* context) { 776 LOperand* context) {
777 LoadContextFromDeferred(context); 777 LoadContextFromDeferred(context);
778 __ CallRuntimeSaveDoubles(id); 778 __ CallRuntimeSaveDoubles(id);
779 RecordSafepointWithRegisters( 779 RecordSafepointWithRegisters(
780 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt); 780 instr->pointer_map(), argc, Safepoint::kNoLazyDeopt);
781 } 781 }
782 782
783 783
784 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment, 784 void LCodeGen::RegisterEnvironmentForDeoptimization(LEnvironment* environment,
785 Safepoint::DeoptMode mode) { 785 Safepoint::DeoptMode mode) {
786 environment->set_has_been_used();
786 if (!environment->HasBeenRegistered()) { 787 if (!environment->HasBeenRegistered()) {
787 // Physical stack frame layout: 788 // Physical stack frame layout:
788 // -x ............. -4 0 ..................................... y 789 // -x ............. -4 0 ..................................... y
789 // [incoming arguments] [spill slots] [pushed outgoing arguments] 790 // [incoming arguments] [spill slots] [pushed outgoing arguments]
790 791
791 // Layout of the environment: 792 // Layout of the environment:
792 // 0 ..................................................... size-1 793 // 0 ..................................................... size-1
793 // [parameters] [locals] [expression stack including arguments] 794 // [parameters] [locals] [expression stack including arguments]
794 795
795 // Layout of the translation: 796 // Layout of the translation:
(...skipping 5047 matching lines...) Expand 10 before | Expand all | Expand 10 after
5843 __ ldr(result, FieldMemOperand(scratch, 5844 __ ldr(result, FieldMemOperand(scratch,
5844 FixedArray::kHeaderSize - kPointerSize)); 5845 FixedArray::kHeaderSize - kPointerSize));
5845 __ bind(deferred->exit()); 5846 __ bind(deferred->exit());
5846 __ bind(&done); 5847 __ bind(&done);
5847 } 5848 }
5848 5849
5849 5850
5850 #undef __ 5851 #undef __
5851 5852
5852 } } // namespace v8::internal 5853 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698