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

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

Issue 23549011: remove Isolate::Current from most files starting with 's' through 'v' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 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 4177 matching lines...) Expand 10 before | Expand all | Expand 10 after
4188 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kPrototypeOffset, value, mode); 4188 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kPrototypeOffset, value, mode);
4189 } 4189 }
4190 4190
4191 4191
4192 // If the descriptor is using the empty transition array, install a new empty 4192 // If the descriptor is using the empty transition array, install a new empty
4193 // transition array that will have place for an element transition. 4193 // transition array that will have place for an element transition.
4194 static MaybeObject* EnsureHasTransitionArray(Map* map) { 4194 static MaybeObject* EnsureHasTransitionArray(Map* map) {
4195 TransitionArray* transitions; 4195 TransitionArray* transitions;
4196 MaybeObject* maybe_transitions; 4196 MaybeObject* maybe_transitions;
4197 if (!map->HasTransitionArray()) { 4197 if (!map->HasTransitionArray()) {
4198 maybe_transitions = TransitionArray::Allocate(0); 4198 maybe_transitions = TransitionArray::Allocate(map->GetIsolate(), 0);
4199 if (!maybe_transitions->To(&transitions)) return maybe_transitions; 4199 if (!maybe_transitions->To(&transitions)) return maybe_transitions;
4200 transitions->set_back_pointer_storage(map->GetBackPointer()); 4200 transitions->set_back_pointer_storage(map->GetBackPointer());
4201 } else if (!map->transitions()->IsFullTransitionArray()) { 4201 } else if (!map->transitions()->IsFullTransitionArray()) {
4202 maybe_transitions = map->transitions()->ExtendToFullTransitionArray(); 4202 maybe_transitions = map->transitions()->ExtendToFullTransitionArray();
4203 if (!maybe_transitions->To(&transitions)) return maybe_transitions; 4203 if (!maybe_transitions->To(&transitions)) return maybe_transitions;
4204 } else { 4204 } else {
4205 return map; 4205 return map;
4206 } 4206 }
4207 map->set_transitions(transitions); 4207 map->set_transitions(transitions);
4208 return transitions; 4208 return transitions;
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after
6285 #undef WRITE_UINT32_FIELD 6285 #undef WRITE_UINT32_FIELD
6286 #undef READ_SHORT_FIELD 6286 #undef READ_SHORT_FIELD
6287 #undef WRITE_SHORT_FIELD 6287 #undef WRITE_SHORT_FIELD
6288 #undef READ_BYTE_FIELD 6288 #undef READ_BYTE_FIELD
6289 #undef WRITE_BYTE_FIELD 6289 #undef WRITE_BYTE_FIELD
6290 6290
6291 6291
6292 } } // namespace v8::internal 6292 } } // namespace v8::internal
6293 6293
6294 #endif // V8_OBJECTS_INL_H_ 6294 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/mksnapshot.cc ('k') | src/scopeinfo.cc » ('j') | src/serialize.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698