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

Side by Side Diff: src/accessors.cc

Issue 722723002: Move public symbols to the root set. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « no previous file | src/api.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/contexts.h" 10 #include "src/contexts.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 DCHECK(it.HolderIsReceiverOrHiddenPrototype()); 174 DCHECK(it.HolderIsReceiverOrHiddenPrototype());
175 175
176 if (Object::SetDataProperty(&it, value).is_null()) { 176 if (Object::SetDataProperty(&it, value).is_null()) {
177 isolate->OptionalRescheduleException(false); 177 isolate->OptionalRescheduleException(false);
178 } 178 }
179 } 179 }
180 180
181 181
182 Handle<AccessorInfo> Accessors::ArgumentsIteratorInfo( 182 Handle<AccessorInfo> Accessors::ArgumentsIteratorInfo(
183 Isolate* isolate, PropertyAttributes attributes) { 183 Isolate* isolate, PropertyAttributes attributes) {
184 Handle<Name> name(isolate->native_context()->iterator_symbol(), isolate); 184 Handle<Name> name = isolate->factory()->iterator_symbol();
185 return MakeAccessor(isolate, name, &ArgumentsIteratorGetter, 185 return MakeAccessor(isolate, name, &ArgumentsIteratorGetter,
186 &ArgumentsIteratorSetter, attributes); 186 &ArgumentsIteratorSetter, attributes);
187 } 187 }
188 188
189 189
190 // 190 //
191 // Accessors::ArrayLength 191 // Accessors::ArrayLength
192 // 192 //
193 193
194 194
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 info->set_data(Smi::FromInt(index)); 1402 info->set_data(Smi::FromInt(index));
1403 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); 1403 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport);
1404 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); 1404 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport);
1405 info->set_getter(*getter); 1405 info->set_getter(*getter);
1406 if (!(attributes & ReadOnly)) info->set_setter(*setter); 1406 if (!(attributes & ReadOnly)) info->set_setter(*setter);
1407 return info; 1407 return info;
1408 } 1408 }
1409 1409
1410 1410
1411 } } // namespace v8::internal 1411 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698