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

Side by Side Diff: src/handles.cc

Issue 341082: Reverting 3174. Aka reapplying 3150, 3151 and 3159. Aka api accessor (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « src/handles.h ('k') | src/ia32/codegen-ia32.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 99
100 void HandleScope::ZapRange(Object** start, Object** end) { 100 void HandleScope::ZapRange(Object** start, Object** end) {
101 if (start == NULL) return; 101 if (start == NULL) return;
102 for (Object** p = start; p < end; p++) { 102 for (Object** p = start; p < end; p++) {
103 *reinterpret_cast<Address*>(p) = v8::internal::kHandleZapValue; 103 *reinterpret_cast<Address*>(p) = v8::internal::kHandleZapValue;
104 } 104 }
105 } 105 }
106 106
107 107
108 Address HandleScope::current_extensions_address() {
109 return reinterpret_cast<Address>(&current_.extensions);
110 }
111
112
113 Address HandleScope::current_next_address() {
114 return reinterpret_cast<Address>(&current_.next);
115 }
116
117
118 Address HandleScope::current_limit_address() {
119 return reinterpret_cast<Address>(&current_.limit);
120 }
121
122
108 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray> content, 123 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray> content,
109 Handle<JSArray> array) { 124 Handle<JSArray> array) {
110 CALL_HEAP_FUNCTION(content->AddKeysFromJSArray(*array), FixedArray); 125 CALL_HEAP_FUNCTION(content->AddKeysFromJSArray(*array), FixedArray);
111 } 126 }
112 127
113 128
114 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, 129 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first,
115 Handle<FixedArray> second) { 130 Handle<FixedArray> second) {
116 CALL_HEAP_FUNCTION(first->UnionOfKeys(*second), FixedArray); 131 CALL_HEAP_FUNCTION(first->UnionOfKeys(*second), FixedArray);
117 } 132 }
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map); 772 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map);
758 obj->set_map(*new_map); 773 obj->set_map(*new_map);
759 new_map->set_needs_loading(true); 774 new_map->set_needs_loading(true);
760 // Store the lazy loading info in the constructor field. We'll 775 // Store the lazy loading info in the constructor field. We'll
761 // reestablish the constructor from the fixed array after loading. 776 // reestablish the constructor from the fixed array after loading.
762 new_map->set_constructor(*arr); 777 new_map->set_constructor(*arr);
763 ASSERT(!obj->IsLoaded()); 778 ASSERT(!obj->IsLoaded());
764 } 779 }
765 780
766 } } // namespace v8::internal 781 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698