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

Side by Side Diff: src/factory.cc

Issue 332863003: Remove AccessControl from AccessorPairs, as it's an invalid usecase of AllCan* (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/apinatives.js ('k') | src/objects.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/factory.h" 5 #include "src/factory.h"
6 6
7 #include "src/conversions.h" 7 #include "src/conversions.h"
8 #include "src/isolate-inl.h" 8 #include "src/isolate-inl.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 Handle<OrderedHashMap> Factory::NewOrderedHashMap() { 144 Handle<OrderedHashMap> Factory::NewOrderedHashMap() {
145 return OrderedHashMap::Allocate(isolate(), 4); 145 return OrderedHashMap::Allocate(isolate(), 4);
146 } 146 }
147 147
148 148
149 Handle<AccessorPair> Factory::NewAccessorPair() { 149 Handle<AccessorPair> Factory::NewAccessorPair() {
150 Handle<AccessorPair> accessors = 150 Handle<AccessorPair> accessors =
151 Handle<AccessorPair>::cast(NewStruct(ACCESSOR_PAIR_TYPE)); 151 Handle<AccessorPair>::cast(NewStruct(ACCESSOR_PAIR_TYPE));
152 accessors->set_getter(*the_hole_value(), SKIP_WRITE_BARRIER); 152 accessors->set_getter(*the_hole_value(), SKIP_WRITE_BARRIER);
153 accessors->set_setter(*the_hole_value(), SKIP_WRITE_BARRIER); 153 accessors->set_setter(*the_hole_value(), SKIP_WRITE_BARRIER);
154 accessors->set_access_flags(Smi::FromInt(0), SKIP_WRITE_BARRIER);
155 return accessors; 154 return accessors;
156 } 155 }
157 156
158 157
159 Handle<TypeFeedbackInfo> Factory::NewTypeFeedbackInfo() { 158 Handle<TypeFeedbackInfo> Factory::NewTypeFeedbackInfo() {
160 Handle<TypeFeedbackInfo> info = 159 Handle<TypeFeedbackInfo> info =
161 Handle<TypeFeedbackInfo>::cast(NewStruct(TYPE_FEEDBACK_INFO_TYPE)); 160 Handle<TypeFeedbackInfo>::cast(NewStruct(TYPE_FEEDBACK_INFO_TYPE));
162 info->initialize_storage(); 161 info->initialize_storage();
163 return info; 162 return info;
164 } 163 }
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2337 return Handle<Object>::null(); 2336 return Handle<Object>::null();
2338 } 2337 }
2339 2338
2340 2339
2341 Handle<Object> Factory::ToBoolean(bool value) { 2340 Handle<Object> Factory::ToBoolean(bool value) {
2342 return value ? true_value() : false_value(); 2341 return value ? true_value() : false_value();
2343 } 2342 }
2344 2343
2345 2344
2346 } } // namespace v8::internal 2345 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/apinatives.js ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698