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

Side by Side Diff: src/objects-inl.h

Issue 2811033: [Isolates] Remove even more statics. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: rebase and address comments Created 10 years, 5 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/objects.cc ('k') | src/profile-generator.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 3196 matching lines...) Expand 10 before | Expand all | Expand 10 after
3207 set_elements(storage); 3207 set_elements(storage);
3208 } 3208 }
3209 3209
3210 3210
3211 Object* FixedArray::Copy() { 3211 Object* FixedArray::Copy() {
3212 if (length() == 0) return this; 3212 if (length() == 0) return this;
3213 return HEAP->CopyFixedArray(this); 3213 return HEAP->CopyFixedArray(this);
3214 } 3214 }
3215 3215
3216 3216
3217 Relocatable::Relocatable() {
3218 Isolate* isolate = Isolate::Current();
3219 prev_ = isolate->relocatable_top();
3220 isolate->set_relocatable_top(this);
3221 }
3222
3223
3224 Relocatable::~Relocatable() {
3225 Isolate* isolate = Isolate::Current();
3226 ASSERT_EQ(isolate->relocatable_top(), this);
3227 isolate->set_relocatable_top(prev_);
3228 }
3229
3230
3217 #undef CAST_ACCESSOR 3231 #undef CAST_ACCESSOR
3218 #undef INT_ACCESSORS 3232 #undef INT_ACCESSORS
3219 #undef SMI_ACCESSORS 3233 #undef SMI_ACCESSORS
3220 #undef ACCESSORS 3234 #undef ACCESSORS
3221 #undef FIELD_ADDR 3235 #undef FIELD_ADDR
3222 #undef READ_FIELD 3236 #undef READ_FIELD
3223 #undef WRITE_FIELD 3237 #undef WRITE_FIELD
3224 #undef WRITE_BARRIER 3238 #undef WRITE_BARRIER
3225 #undef CONDITIONAL_WRITE_BARRIER 3239 #undef CONDITIONAL_WRITE_BARRIER
3226 #undef READ_MEMADDR_FIELD 3240 #undef READ_MEMADDR_FIELD
3227 #undef WRITE_MEMADDR_FIELD 3241 #undef WRITE_MEMADDR_FIELD
3228 #undef READ_DOUBLE_FIELD 3242 #undef READ_DOUBLE_FIELD
3229 #undef WRITE_DOUBLE_FIELD 3243 #undef WRITE_DOUBLE_FIELD
3230 #undef READ_INT_FIELD 3244 #undef READ_INT_FIELD
3231 #undef WRITE_INT_FIELD 3245 #undef WRITE_INT_FIELD
3232 #undef READ_SHORT_FIELD 3246 #undef READ_SHORT_FIELD
3233 #undef WRITE_SHORT_FIELD 3247 #undef WRITE_SHORT_FIELD
3234 #undef READ_BYTE_FIELD 3248 #undef READ_BYTE_FIELD
3235 #undef WRITE_BYTE_FIELD 3249 #undef WRITE_BYTE_FIELD
3236 3250
3237 3251
3238 } } // namespace v8::internal 3252 } } // namespace v8::internal
3239 3253
3240 #endif // V8_OBJECTS_INL_H_ 3254 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/profile-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698