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

Unified Diff: src/register-allocator.h

Issue 6685088: Merge isolates to bleeding_edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/regexp-stack.cc ('k') | src/register-allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/register-allocator.h
===================================================================
--- src/register-allocator.h (revision 7267)
+++ src/register-allocator.h (working copy)
@@ -69,12 +69,13 @@
// Construct a Result whose value is a compile-time constant.
explicit Result(Handle<Object> value) {
+ ZoneObjectList* constant_list = Isolate::Current()->result_constant_list();
TypeInfo info = TypeInfo::TypeFromValue(value);
value_ = TypeField::encode(CONSTANT)
| TypeInfoField::encode(info.ToInt())
| IsUntaggedInt32Field::encode(false)
- | DataField::encode(ConstantList()->length());
- ConstantList()->Add(value);
+ | DataField::encode(constant_list->length());
+ constant_list->Add(value);
}
// The copy constructor and assignment operators could each create a new
@@ -85,18 +86,6 @@
inline ~Result();
- // Static indirection table for handles to constants. If a Result
- // represents a constant, the data contains an index into this table
- // of handles to the actual constants.
- typedef ZoneList<Handle<Object> > ZoneObjectList;
-
- static ZoneObjectList* ConstantList();
-
- // Clear the constants indirection table.
- static void ClearConstantList() {
- ConstantList()->Clear();
- }
-
inline void Unuse();
Type type() const { return TypeField::decode(value_); }
@@ -137,7 +126,8 @@
Handle<Object> handle() const {
ASSERT(type() == CONSTANT);
- return ConstantList()->at(DataField::decode(value_));
+ return Isolate::Current()->result_constant_list()->
+ at(DataField::decode(value_));
}
// Move this result to an arbitrary register. The register is not
« no previous file with comments | « src/regexp-stack.cc ('k') | src/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698