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

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

Issue 20488: Experimental: introduce a simple way to avoid generating jumps to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 years, 10 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
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 Handle<Object> handle() const { 117 Handle<Object> handle() const {
118 ASSERT(is_constant()); 118 ASSERT(is_constant());
119 return Handle<Object>(data_.handle_); 119 return Handle<Object>(data_.handle_);
120 } 120 }
121 121
122 int index() const { 122 int index() const {
123 ASSERT(is_copy()); 123 ASSERT(is_copy());
124 return data_.index_; 124 return data_.index_;
125 } 125 }
126 126
127 #ifdef DEBUG
128 bool Equals(FrameElement other); 127 bool Equals(FrameElement other);
129 #endif
130 128
131 private: 129 private:
132 enum Type { 130 enum Type {
133 INVALID, 131 INVALID,
134 MEMORY, 132 MEMORY,
135 REGISTER, 133 REGISTER,
136 CONSTANT, 134 CONSTANT,
137 COPY 135 COPY
138 }; 136 };
139 137
(...skipping 20 matching lines...) Expand all
160 158
161 } } // namespace v8::internal 159 } } // namespace v8::internal
162 160
163 #ifdef ARM 161 #ifdef ARM
164 #include "virtual-frame-arm.h" 162 #include "virtual-frame-arm.h"
165 #else // ia32 163 #else // ia32
166 #include "virtual-frame-ia32.h" 164 #include "virtual-frame-ia32.h"
167 #endif 165 #endif
168 166
169 #endif // V8_VIRTUAL_FRAME_H_ 167 #endif // V8_VIRTUAL_FRAME_H_
OLDNEW
« src/jump-target-ia32.cc ('K') | « src/jump-target-ia32.cc ('k') | src/virtual-frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698