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

Side by Side Diff: src/handles.cc

Issue 335027: Reverted 3130-3131 since they don't work on mac. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | Annotate | Revision Log
« 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
123 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray> content, 108 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray> content,
124 Handle<JSArray> array) { 109 Handle<JSArray> array) {
125 CALL_HEAP_FUNCTION(content->AddKeysFromJSArray(*array), FixedArray); 110 CALL_HEAP_FUNCTION(content->AddKeysFromJSArray(*array), FixedArray);
126 } 111 }
127 112
128 113
129 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, 114 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first,
130 Handle<FixedArray> second) { 115 Handle<FixedArray> second) {
131 CALL_HEAP_FUNCTION(first->UnionOfKeys(*second), FixedArray); 116 CALL_HEAP_FUNCTION(first->UnionOfKeys(*second), FixedArray);
132 } 117 }
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map); 757 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map);
773 obj->set_map(*new_map); 758 obj->set_map(*new_map);
774 new_map->set_needs_loading(true); 759 new_map->set_needs_loading(true);
775 // Store the lazy loading info in the constructor field. We'll 760 // Store the lazy loading info in the constructor field. We'll
776 // reestablish the constructor from the fixed array after loading. 761 // reestablish the constructor from the fixed array after loading.
777 new_map->set_constructor(*arr); 762 new_map->set_constructor(*arr);
778 ASSERT(!obj->IsLoaded()); 763 ASSERT(!obj->IsLoaded());
779 } 764 }
780 765
781 } } // namespace v8::internal 766 } } // 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