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

Side by Side Diff: src/virtual-frame-light-inl.h

Issue 2804005: [Isolates] Removal of miscellaneous statics from the backend. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 6 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/mips/disasm-mips.cc ('k') | src/x64/disasm-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 75
76 void VirtualFrame::PrepareForReturn() { 76 void VirtualFrame::PrepareForReturn() {
77 SpillAll(); 77 SpillAll();
78 } 78 }
79 79
80 80
81 VirtualFrame::RegisterAllocationScope::RegisterAllocationScope( 81 VirtualFrame::RegisterAllocationScope::RegisterAllocationScope(
82 CodeGenerator* cgen) 82 CodeGenerator* cgen)
83 : cgen_(cgen), 83 : cgen_(cgen),
84 old_is_spilled_(SpilledScope::is_spilled_) { 84 old_is_spilled_(
85 SpilledScope::is_spilled_ = false; 85 Isolate::Current()->is_virtual_frame_in_spilled_scope()) {
86 Isolate::Current()->set_is_virtual_frame_in_spilled_scope(false);
86 if (old_is_spilled_) { 87 if (old_is_spilled_) {
87 VirtualFrame* frame = cgen->frame(); 88 VirtualFrame* frame = cgen->frame();
88 if (frame != NULL) { 89 if (frame != NULL) {
89 frame->AssertIsSpilled(); 90 frame->AssertIsSpilled();
90 } 91 }
91 } 92 }
92 } 93 }
93 94
94 95
95 VirtualFrame::RegisterAllocationScope::~RegisterAllocationScope() { 96 VirtualFrame::RegisterAllocationScope::~RegisterAllocationScope() {
96 SpilledScope::is_spilled_ = old_is_spilled_; 97 Isolate::Current()->set_is_virtual_frame_in_spilled_scope(old_is_spilled_);
97 if (old_is_spilled_) { 98 if (old_is_spilled_) {
98 VirtualFrame* frame = cgen_->frame(); 99 VirtualFrame* frame = cgen_->frame();
99 if (frame != NULL) { 100 if (frame != NULL) {
100 frame->SpillAll(); 101 frame->SpillAll();
101 } 102 }
102 } 103 }
103 } 104 }
104 105
105 106
106 CodeGenerator* VirtualFrame::cgen() const { 107 CodeGenerator* VirtualFrame::cgen() const {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 160
160 MemOperand VirtualFrame::LocalAt(int index) { 161 MemOperand VirtualFrame::LocalAt(int index) {
161 ASSERT(0 <= index); 162 ASSERT(0 <= index);
162 ASSERT(index < local_count()); 163 ASSERT(index < local_count());
163 return MemOperand(fp, kLocal0Offset - index * kPointerSize); 164 return MemOperand(fp, kLocal0Offset - index * kPointerSize);
164 } 165 }
165 166
166 } } // namespace v8::internal 167 } } // namespace v8::internal
167 168
168 #endif // V8_VIRTUAL_FRAME_LIGHT_INL_H_ 169 #endif // V8_VIRTUAL_FRAME_LIGHT_INL_H_
OLDNEW
« no previous file with comments | « src/mips/disasm-mips.cc ('k') | src/x64/disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698